#212A66#212A66

#212A66 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.105 H 272.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#212A66
RGBrgb(33, 42, 102)
HSLhsl(232, 51%, 26%)
HSVhsv(232, 68%, 40%)
CMYKcmyk(67.6%, 58.8%, 0%, 60%)
CIE-LABlab(19.79, 17.47, -36.59)
CIE-LCHlch(19.79, 40.55, 295.52°)
OKLaboklab(31.53% 0.0045 -0.1051)
OKLCHoklch(31.53% 0.105 272.5)
XYZxyz(3.8526, 2.9382, 12.9319)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A66 #665D21
analogous
#214D66 #212A66 #3B2166
triadic
#212A66 #66212A #2A6621
tetradic
#212A66 #66214D #665D21 #21663B
square
#212A66 #66214D #665D21 #21663B
split-complementary
#212A66 #663B21 #4D6621
monochromatic
#070A17 #121738 #212A66 #303D94 #4051C1

Accessibility & contrast

On white

13.23
#212A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A66
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A66#FFFFFF#000000##FFFFFF
##212A661.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#003843
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212a66;
/* rgb */ color: rgb(33, 42, 102);
/* oklch */ color: oklch(31.5% 0.105 272.5);
Tailwind
colors: {
  custom: {
    50: '#656392',
    500: '#212a66',
    950: '#000000',
  },
}
SCSS
$custom: #212a66;
$custom-light: #656392;
$custom-dark: #000000;
JSON
{
  "hex": "#212a66",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 102
  },
  "hsl": {
    "h": 232.174,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31533,
    "c": 0.10525,
    "h": 272.5
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#212A66
secondary
#9A8F49
accent
#C84DDB
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212A66

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

Preview Lab → · Contrast checker → · Palette generator →

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