#2862CD

Closest named color: Royal Blue (#4169E1). oklch(52.1% 0.177 261.3), rgb(40, 98, 205).

Aa

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

About this color

#2862CD is a medium-dark, vivid blue. In OKLCH its lightness is 52%, its chroma 0.177 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.043 away. White text reads best on it, at 5.64:1.

Hue familyBlues
Lightnessmedium-dark (52%)
Chromavivid (0.177)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text3.71:1
White text5.64:1

Values

HEX#2862CD
RGBrgb(40, 98, 205)
HSLhsl(219, 67%, 48%)
OKLCHoklch(52.1% 0.177 261.3)

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 #2862CD 5.64:1 AA Lc -83.0 Fine for body text
Black text on #2862CD 3.71:1 AA large text Lc 26.4 Dividers and decoration only
#2862CD text on white 5.64:1 AA Lc 77.7 Fine for body text
#2862CD text on black 3.71:1 AA large text Lc -24.1 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 700.

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #E1EAFB

    oklch(93.5% 0.025 263.3)

  3. Step 200

    200

    #C8DAF9

    oklch(88.5% 0.047 261.4)

  4. Step 300

    300

    #A2C2F9

    oklch(81% 0.086 261.1)

  5. Step 400

    400

    #6F9FF5

    oklch(70.6% 0.137 261.4)

  6. Step 500

    500

    #4985F2

    oklch(63.2% 0.175 261.2)

  7. Step 600

    600

    #2C6BE0

    oklch(55.5% 0.19 261.4)

  8. Step 700

    700 (this color)

    #2862CD

    oklch(52.1% 0.177 261.3)

  9. Step 800

    800

    #1B499E

    oklch(42.7% 0.147 261.3)

  10. Step 900

    900

    #1C3E7D

    oklch(37.6% 0.114 261.4)

  11. Step 950

    950

    #112549

    oklch(27% 0.072 261.1)

Export this scale for Tailwind in the Tailwind colors tool

#2862CD 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)#136FD10.033
Deuteranopia (no green cones)#0060CB0.019
Tritanopia (no blue cones)#007C8E0.137
Achromatopsia (no color)#6767670.177

Harmonies

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

Complementary

The opposite hue (180°).

  • #2862CD

    #2862CD

    oklch(52.1% 0.177 261.3)

  • #886200

    #886200

    oklch(52.2% 0.108 82)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2862CD

    #2862CD

    oklch(52.1% 0.177 261.3)

  • #00739B

    #00739B

    oklch(52.1% 0.106 231.5)

  • #6E4EC5

    #6E4EC5

    oklch(52.1% 0.177 291.4)

Open the analogous palette in the generator

Split complementary

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

  • #2862CD

    #2862CD

    oklch(52.1% 0.177 261.3)

  • #A44D00

    #A44D00

    oklch(52.1% 0.136 51.2)

  • #6C6F00

    #6C6F00

    oklch(52.2% 0.115 111.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2862CD

    #2862CD

    oklch(52.1% 0.177 261.3)

  • #B92C39

    #B92C39

    oklch(52.1% 0.177 21.3)

  • #178000

    #178000

    oklch(52.2% 0.173 141.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2862CD

    #2862CD

    oklch(52.1% 0.177 261.3)

  • #AF2E75

    #AF2E75

    oklch(52.2% 0.177 351.4)

  • #886200

    #886200

    oklch(52.2% 0.108 82)

  • #007C62

    #007C62

    oklch(52.2% 0.102 171.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2862CD 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.