#212E66#212E66

#212E66 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.100 H 270.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#212E66
RGBrgb(33, 46, 102)
HSLhsl(229, 51%, 26%)
HSVhsv(229, 68%, 40%)
CMYKcmyk(67.6%, 54.9%, 0%, 60%)
CIE-LABlab(20.97, 14.60, -34.70)
CIE-LCHlch(20.97, 37.65, 292.82°)
OKLaboklab(32.41% 0.0003 -0.0995)
OKLCHoklch(32.41% 0.1 270.2)
XYZxyz(4.0017, 3.2363, 12.9816)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E66 #665921
analogous
#215166 #212E66 #372166
triadic
#212E66 #66212E #2E6621
tetradic
#212E66 #662151 #665921 #216637
square
#212E66 #662151 #665921 #216637
split-complementary
#212E66 #663721 #516621
monochromatic
#070A17 #121938 #212E66 #304394 #4058C1

Accessibility & contrast

On white

12.75
#212E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E66
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E66#FFFFFF#000000##FFFFFF
##212E661.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3668
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212e66;
/* rgb */ color: rgb(33, 46, 102);
/* oklch */ color: oklch(32.4% 0.100 270.2);
Tailwind
colors: {
  custom: {
    50: '#656692',
    500: '#212e66',
    950: '#000000',
  },
}
SCSS
$custom: #212e66;
$custom-light: #656692;
$custom-dark: #000000;
JSON
{
  "hex": "#212e66",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 102
  },
  "hsl": {
    "h": 228.696,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32414,
    "c": 0.09952,
    "h": 270.2
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#212E66
secondary
#9A8B49
accent
#C04DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212E66

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

Preview Lab → · Contrast checker → · Palette generator →

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