#212E89#212E89

#212E89 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.151 H 270.2°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#212E89
RGBrgb(33, 46, 137)
HSLhsl(233, 61%, 33%)
HSVhsv(233, 76%, 54%)
CMYKcmyk(75.9%, 66.4%, 0%, 46.3%)
CIE-LABlab(23.94, 28.21, -52.16)
CIE-LCHlch(23.94, 59.30, 298.41°)
OKLaboklab(35.56% 0.0006 -0.1508)
OKLCHoklch(35.56% 0.151 270.2)
XYZxyz(6.1180, 4.0828, 24.1277)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E89 #897C21
analogous
#216289 #212E89 #482189
triadic
#212E89 #89212E #2E8921
tetradic
#212E89 #892162 #897C21 #218948
square
#212E89 #892162 #897C21 #218948
split-complementary
#212E89 #894821 #628921
monochromatic
#090D26 #151D58 #212E89 #2D3FBA #5060D5

Accessibility & contrast

On white

11.56
#212E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E89
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E89#FFFFFF#000000##FFFFFF
##212E891.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212e89;
/* rgb */ color: rgb(33, 46, 137);
/* oklch */ color: oklch(35.6% 0.151 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d66ac',
    500: '#212e89',
    950: '#000000',
  },
}
SCSS
$custom: #212e89;
$custom-light: #6d66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212e89",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 232.5,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35559,
    "c": 0.1508,
    "h": 270.2
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#212E89
secondary
#B8AB4E
accent
#D044E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212E89

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

Preview Lab → · Contrast checker → · Palette generator →

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