#335198

Closest named color: Dusk Blue (#26538D). oklch(45% 0.121 264.8), rgb(51, 81, 152).

Aa

White text reads best on this color (7.57:1).

About this color

#335198 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 45%, its chroma 0.121 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.024 away. White text reads best on it, at 7.57:1.

Hue familyBlues
Lightnessmedium-dark (45%)
Chromamoderately saturated (0.121)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.77:1
White text7.57:1

Values

HEX#335198
RGBrgb(51, 81, 152)
HSLhsl(222, 50%, 40%)
OKLCHoklch(45% 0.121 264.8)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #335198 7.57:1 AAA Lc -90.9 Preferred for body text
Black text on #335198 2.77:1 Fails Lc 17.9 Dividers and decoration only
#335198 text on white 7.57:1 AAA Lc 86.1 Fine for body text
#335198 text on black 2.77:1 Fails Lc -16.0 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 800.

  1. Step 50

    50

    #F2F5FC

    oklch(97% 0.01 267.4)

  2. Step 100

    100

    #E3EAF8

    oklch(93.6% 0.02 264.5)

  3. Step 200

    200

    #CCD9F4

    oklch(88.4% 0.04 265.1)

  4. Step 300

    300

    #AAC1EF

    oklch(81% 0.07 264.1)

  5. Step 400

    400

    #7D9FE8

    oklch(70.7% 0.114 264.6)

  6. Step 500

    500

    #5D85E1

    oklch(63.1% 0.146 264.8)

  7. Step 600

    600

    #446DCE

    oklch(55.6% 0.157 264.6)

  8. Step 700

    700

    #365AB3

    oklch(49% 0.147 264.9)

  9. Step 800

    800 (this color)

    #335198

    oklch(45% 0.121 264.8)

  10. Step 900

    900

    #283F73

    oklch(37.7% 0.094 264.4)

  11. Step 950

    950

    #182544

    oklch(27% 0.061 265.4)

Export this scale for Tailwind in the Tailwind colors tool

#335198 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#2E599B0.022
Deuteranopia (no green cones)#1C50970.022
Tritanopia (no blue cones)#00616D0.100
Achromatopsia (no color)#5454540.121

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #335198

    #335198

    oklch(45% 0.121 264.8)

  • #6D5000

    #6D5000

    oklch(45% 0.092 84.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #335198

    #335198

    oklch(45% 0.121 264.8)

  • #005D82

    #005D82

    oklch(45.1% 0.095 234.4)

  • #5B4491

    #5B4491

    oklch(45% 0.122 294.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #335198

    #335198

    oklch(45% 0.121 264.8)

  • #834100

    #834100

    oklch(45.1% 0.112 54.9)

  • #545B00

    #545B00

    oklch(45% 0.102 114.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #335198

    #335198

    oklch(45% 0.121 264.8)

  • #8C3431

    #8C3431

    oklch(45% 0.121 25.1)

  • #1E6625

    #1E6625

    oklch(45.1% 0.121 144.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #335198

    #335198

    oklch(45% 0.121 264.8)

  • #863359

    #863359

    oklch(45% 0.121 354.6)

  • #6D5000

    #6D5000

    oklch(45% 0.092 84.4)

  • #006452

    #006452

    oklch(44.9% 0.085 174.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #335198, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #335198 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.