#212E9C#212E9C

#212E9C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.176 H 269.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#212E9C
RGBrgb(33, 46, 156)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 61%)
CMYKcmyk(78.8%, 70.5%, 0%, 38.8%)
CIE-LABlab(25.79, 35.29, -60.84)
CIE-LCHlch(25.79, 70.34, 300.12°)
OKLaboklab(37.47% -0.001 -0.1762)
OKLCHoklch(37.47% 0.176 269.7)
XYZxyz(7.6029, 4.6768, 31.9481)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E9C #9C8F21
analogous
#216B9C #212E9C #52219C
triadic
#212E9C #9C212E #2E9C21
tetradic
#212E9C #9C216B #9C8F21 #219C52
square
#212E9C #9C216B #9C8F21 #219C52
split-complementary
#212E9C #9C5221 #6B9C21
monochromatic
#0C1037 #161F69 #212E9C #2C3DCF #5B69DC

Accessibility & contrast

On white

10.85
#212E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#212E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E9C
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E9C#FFFFFF#000000##FFFFFF
##212E9C1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212e9c;
/* rgb */ color: rgb(33, 46, 156);
/* oklch */ color: oklch(37.5% 0.176 269.7);
Tailwind
colors: {
  custom: {
    50: '#7267ba',
    500: '#212e9c',
    950: '#000000',
  },
}
SCSS
$custom: #212e9c;
$custom-light: #7267ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212e9c",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 233.659,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37468,
    "c": 0.17617,
    "h": 269.7
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#212E9C
secondary
#C1B658
accent
#D640E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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