#212989#212989

#212989 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.157 H 271.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#212989
RGBrgb(33, 41, 137)
HSLhsl(235, 61%, 33%)
HSVhsv(235, 76%, 54%)
CMYKcmyk(75.9%, 70.1%, 0%, 46.3%)
CIE-LABlab(22.70, 31.52, -54.19)
CIE-LCHlch(22.70, 62.69, 300.19°)
OKLaboklab(34.66% 0.0038 -0.1568)
OKLCHoklch(34.66% 0.157 271.4)
XYZxyz(5.9340, 3.7147, 24.0663)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212989 #898121
analogous
#215D89 #212989 #4D2189
triadic
#212989 #892129 #298921
tetradic
#212989 #89215D #898121 #21894D
square
#212989 #89215D #898121 #21894D
split-complementary
#212989 #894D21 #5D8921
monochromatic
#090B26 #151A58 #212989 #2D38BA #505AD5

Accessibility & contrast

On white

12.05
#212989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212989
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212989#FFFFFF#000000##FFFFFF
##2129891.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212989;
/* rgb */ color: rgb(33, 41, 137);
/* oklch */ color: oklch(34.7% 0.157 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e63ac',
    500: '#212989',
    950: '#000000',
  },
}
SCSS
$custom: #212989;
$custom-light: #6e63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212989",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 235.385,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34656,
    "c": 0.15682,
    "h": 271.4
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#212989
secondary
#B8B04E
accent
#D844E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212989

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

Preview Lab → · Contrast checker → · Palette generator →

#212989 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva