#212C9B#212C9B

#212C9B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.177 H 270.0°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#212C9B
RGBrgb(33, 44, 155)
HSLhsl(235, 65%, 37%)
HSVhsv(235, 79%, 61%)
CMYKcmyk(78.7%, 71.6%, 0%, 39.2%)
CIE-LABlab(25.23, 36.19, -61.16)
CIE-LCHlch(25.23, 71.06, 300.61°)
OKLaboklab(37.03% 0.0001 -0.1771)
OKLCHoklch(37.03% 0.177 270)
XYZxyz(7.4423, 4.4904, 31.4785)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C9B #9B9021
analogous
#21699B #212C9B #53219B
triadic
#212C9B #9B212C #2C9B21
tetradic
#212C9B #9B2169 #9B9021 #219B53
square
#212C9B #9B2169 #9B9021 #219B53
split-complementary
#212C9B #9B5321 #699B21
monochromatic
#0C0F36 #161E69 #212C9B #2C3ACD #5A66DC

Accessibility & contrast

On white

11.06
#212C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#212C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C9B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C9B#FFFFFF#000000##FFFFFF
##212C9B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212c9b;
/* rgb */ color: rgb(33, 44, 155);
/* oklch */ color: oklch(37.0% 0.177 270.0);
Tailwind
colors: {
  custom: {
    50: '#7266ba',
    500: '#212c9b',
    950: '#000000',
  },
}
SCSS
$custom: #212c9b;
$custom-light: #7266ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212c9b",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 234.59,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.17709,
    "h": 270
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#212C9B
secondary
#C0B758
accent
#D940E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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