#212E9F#212E9F

#212E9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.180 H 269.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#212E9F
RGBrgb(33, 46, 159)
HSLhsl(234, 66%, 38%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(79.2%, 71.1%, 0%, 37.6%)
CIE-LABlab(26.10, 36.38, -62.17)
CIE-LCHlch(26.10, 72.03, 300.34°)
OKLaboklab(37.78% -0.0013 -0.18)
OKLCHoklch(37.78% 0.18 269.6)
XYZxyz(7.8601, 4.7796, 33.3025)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E9F #9F9221
analogous
#216D9F #212E9F #53219F
triadic
#212E9F #9F212E #2E9F21
tetradic
#212E9F #9F216D #9F9221 #219F53
square
#212E9F #9F216D #9F9221 #219F53
split-complementary
#212E9F #9F5321 #6D9F21
monochromatic
#0C113A #161F6C #212E9F #2C3DD2 #5D6ADD

Accessibility & contrast

On white

10.74
#212E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#212E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E9F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E9F#FFFFFF#000000##FFFFFF
##212E9F1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212e9f;
/* rgb */ color: rgb(33, 46, 159);
/* oklch */ color: oklch(37.8% 0.180 269.6);
Tailwind
colors: {
  custom: {
    50: '#7367bd',
    500: '#212e9f',
    950: '#000000',
  },
}
SCSS
$custom: #212e9f;
$custom-light: #7367bd;
$custom-dark: #000000;
JSON
{
  "hex": "#212e9f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 233.81,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.18004,
    "h": 269.6
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#212E9F
secondary
#C2B75A
accent
#D73FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212E9F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#212E9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva