#212A6D#212A6D

#212A6D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.116 H 272.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#212A6D
RGBrgb(33, 42, 109)
HSLhsl(233, 54%, 28%)
HSVhsv(233, 70%, 43%)
CMYKcmyk(69.7%, 61.5%, 0%, 57.3%)
CIE-LABlab(20.37, 20.19, -40.21)
CIE-LCHlch(20.37, 44.99, 296.67°)
OKLaboklab(32.15% 0.0047 -0.1158)
OKLCHoklch(32.15% 0.116 272.3)
XYZxyz(4.2146, 3.0830, 14.8380)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A6D #6D6421
analogous
#21506D #212A6D #3E216D
triadic
#212A6D #6D212A #2A6D21
tetradic
#212A6D #6D2150 #6D6421 #216D3E
square
#212A6D #6D2150 #6D6421 #216D3E
split-complementary
#212A6D #6D3E21 #506D21
monochromatic
#070917 #13183E #212A6D #2F3C9C #4252C6

Accessibility & contrast

On white

12.99
#212A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A6D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A6D#FFFFFF#000000##FFFFFF
##212A6D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212a6d;
/* rgb */ color: rgb(33, 42, 109);
/* oklch */ color: oklch(32.1% 0.116 272.3);
Tailwind
colors: {
  custom: {
    50: '#676397',
    500: '#212a6d',
    950: '#000000',
  },
}
SCSS
$custom: #212a6d;
$custom-light: #676397;
$custom-dark: #000000;
JSON
{
  "hex": "#212a6d",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 232.895,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32147,
    "c": 0.11587,
    "h": 272.3
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#212A6D
secondary
#A19649
accent
#CC4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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