#212A6E#212A6E

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

Color values

HEX#212A6E
RGBrgb(33, 42, 110)
HSLhsl(233, 54%, 28%)
HSVhsv(233, 70%, 43%)
CMYKcmyk(70%, 61.8%, 0%, 56.9%)
CIE-LABlab(20.46, 20.58, -40.72)
CIE-LCHlch(20.46, 45.62, 296.81°)
OKLaboklab(32.24% 0.0047 -0.1173)
OKLCHoklch(32.24% 0.117 272.3)
XYZxyz(4.2687, 3.1047, 15.1231)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A6E #6E6521
analogous
#21506E #212A6E #3E216E
triadic
#212A6E #6E212A #2A6E21
tetradic
#212A6E #6E2150 #6E6521 #216E3E
square
#212A6E #6E2150 #6E6521 #216E3E
split-complementary
#212A6E #6E3E21 #506E21
monochromatic
#070918 #13183F #212A6E #2F3C9D #4352C7

Accessibility & contrast

On white

12.95
#212A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212A6E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A6E#FFFFFF#000000##FFFFFF
##212A6E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212a6e;
/* rgb */ color: rgb(33, 42, 110);
/* oklch */ color: oklch(32.2% 0.117 272.3);
Tailwind
colors: {
  custom: {
    50: '#676398',
    500: '#212a6e',
    950: '#000000',
  },
}
SCSS
$custom: #212a6e;
$custom-light: #676398;
$custom-dark: #000000;
JSON
{
  "hex": "#212a6e",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 232.987,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32237,
    "c": 0.11736,
    "h": 272.3
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#212A6E
secondary
#A29749
accent
#CC4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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