#212B7E#212B7E

#212B7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.139 H 271.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#212B7E
RGBrgb(33, 43, 126)
HSLhsl(234, 58%, 31%)
HSVhsv(234, 74%, 49%)
CMYKcmyk(73.8%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.15, 26.05, -48.19)
CIE-LCHlch(22.15, 54.78, 298.40°)
OKLaboklab(33.93% 0.0034 -0.1392)
OKLCHoklch(33.93% 0.139 271.4)
XYZxyz(5.2557, 3.5569, 20.1442)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B7E #7E7421
analogous
#21597E #212B7E #45217E
triadic
#212B7E #7E212B #2B7E21
tetradic
#212B7E #7E2159 #7E7421 #217E45
square
#212B7E #7E2159 #7E7421 #217E45
split-complementary
#212B7E #7E4521 #597E21
monochromatic
#080A1D #141A4E #212B7E #2E3CAE #4A58D0

Accessibility & contrast

On white

12.27
#212B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B7E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B7E#FFFFFF#000000##FFFFFF
##212B7E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212b7e;
/* rgb */ color: rgb(33, 43, 126);
/* oklch */ color: oklch(33.9% 0.139 271.4);
Tailwind
colors: {
  custom: {
    50: '#6b64a4',
    500: '#212b7e',
    950: '#000000',
  },
}
SCSS
$custom: #212b7e;
$custom-light: #6b64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#212b7e",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 233.548,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33928,
    "c": 0.13923,
    "h": 271.4
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#212B7E
secondary
#B1A64A
accent
#D146E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #212B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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