#212C9F#212C9F

#212C9F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.182 H 269.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#212C9F
RGBrgb(33, 44, 159)
HSLhsl(235, 66%, 38%)
HSVhsv(235, 79%, 62%)
CMYKcmyk(79.2%, 72.3%, 0%, 37.6%)
CIE-LABlab(25.64, 37.63, -62.92)
CIE-LCHlch(25.64, 73.31, 300.88°)
OKLaboklab(37.45% -0.0004 -0.1822)
OKLCHoklch(37.45% 0.182 269.9)
XYZxyz(7.7837, 4.6270, 33.2770)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C9F #9F9421
analogous
#216B9F #212C9F #55219F
triadic
#212C9F #9F212C #2C9F21
tetradic
#212C9F #9F216B #9F9421 #219F55
square
#212C9F #9F216B #9F9421 #219F55
split-complementary
#212C9F #9F5521 #6B9F21
monochromatic
#0C103A #161E6C #212C9F #2C3AD2 #5D68DD

Accessibility & contrast

On white

10.91
#212C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212C9F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C9F#FFFFFF#000000##FFFFFF
##212C9F1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212c9f;
/* rgb */ color: rgb(33, 44, 159);
/* oklch */ color: oklch(37.5% 0.182 269.9);
Tailwind
colors: {
  custom: {
    50: '#7366bd',
    500: '#212c9f',
    950: '#000000',
  },
}
SCSS
$custom: #212c9f;
$custom-light: #7366bd;
$custom-dark: #000000;
JSON
{
  "hex": "#212c9f",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 234.762,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37453,
    "c": 0.18221,
    "h": 269.9
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#212C9F
secondary
#C2B95A
accent
#DA3FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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