#212A6B#212A6B

#212A6B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.113 H 272.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#212A6B
RGBrgb(33, 42, 107)
HSLhsl(233, 53%, 27%)
HSVhsv(233, 69%, 42%)
CMYKcmyk(69.2%, 60.7%, 0%, 58%)
CIE-LABlab(20.20, 19.41, -39.19)
CIE-LCHlch(20.20, 43.73, 296.36°)
OKLaboklab(31.97% 0.0047 -0.1128)
OKLCHoklch(31.97% 0.113 272.4)
XYZxyz(4.1081, 3.0404, 14.2774)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A6B #6B6221
analogous
#214F6B #212A6B #3D216B
triadic
#212A6B #6B212A #2A6B21
tetradic
#212A6B #6B214F #6B6221 #216B3D
square
#212A6B #6B214F #6B6221 #216B3D
split-complementary
#212A6B #6B3D21 #4F6B21
monochromatic
#070917 #13183C #212A6B #2F3C9A #4252C5

Accessibility & contrast

On white

13.06
#212A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A6B
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A6B#FFFFFF#000000##FFFFFF
##212A6B1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212a6b;
/* rgb */ color: rgb(33, 42, 107);
/* oklch */ color: oklch(32.0% 0.113 272.4);
Tailwind
colors: {
  custom: {
    50: '#666396',
    500: '#212a6b',
    950: '#000000',
  },
}
SCSS
$custom: #212a6b;
$custom-light: #666396;
$custom-dark: #000000;
JSON
{
  "hex": "#212a6b",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 107
  },
  "hsl": {
    "h": 232.703,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.11287,
    "h": 272.4
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#212A6B
secondary
#9F9449
accent
#CB4CDC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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