#212D9E#212D9E

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

Color values

HEX#212D9E
RGBrgb(33, 45, 158)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(79.1%, 71.5%, 0%, 38%)
CIE-LABlab(25.77, 36.65, -62.11)
CIE-LCHlch(25.77, 72.11, 300.54°)
OKLaboklab(37.51% -0.0007 -0.1799)
OKLCHoklch(37.51% 0.18 269.8)
XYZxyz(7.7350, 4.6679, 32.8344)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D9E #9E9221
analogous
#216C9E #212D9E #54219E
triadic
#212D9E #9E212D #2D9E21
tetradic
#212D9E #9E216C #9E9221 #219E54
square
#212D9E #9E216C #9E9221 #219E54
split-complementary
#212D9E #9E5421 #6C9E21
monochromatic
#0C1039 #161F6B #212D9E #2C3BD1 #5C69DD

Accessibility & contrast

On white

10.86
#212D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#212D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D9E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D9E#FFFFFF#000000##FFFFFF
##212D9E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212d9e;
/* rgb */ color: rgb(33, 45, 158);
/* oklch */ color: oklch(37.5% 0.180 269.8);
Tailwind
colors: {
  custom: {
    50: '#7366bc',
    500: '#212d9e',
    950: '#000000',
  },
}
SCSS
$custom: #212d9e;
$custom-light: #7366bc;
$custom-dark: #000000;
JSON
{
  "hex": "#212d9e",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 234.24,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.17986,
    "h": 269.8
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#212D9E
secondary
#C1B759
accent
#D83FE8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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