#212B7F#212B7F

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

Color values

HEX#212B7F
RGBrgb(33, 43, 127)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 74%, 50%)
CMYKcmyk(74%, 66.1%, 0%, 50.2%)
CIE-LABlab(22.24, 26.43, -48.67)
CIE-LCHlch(22.24, 55.38, 298.51°)
OKLaboklab(34.02% 0.0033 -0.1406)
OKLCHoklch(34.02% 0.141 271.4)
XYZxyz(5.3205, 3.5829, 20.4857)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B7F #7F7521
analogous
#215A7F #212B7F #46217F
triadic
#212B7F #7F212B #2B7F21
tetradic
#212B7F #7F215A #7F7521 #217F46
square
#212B7F #7F215A #7F7521 #217F46
split-complementary
#212B7F #7F4621 #5A7F21
monochromatic
#080A1E #141B4E #212B7F #2E3BB0 #4A59D0

Accessibility & contrast

On white

12.23
#212B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B7F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B7F#FFFFFF#000000##FFFFFF
##212B7F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212b7f;
/* rgb */ color: rgb(33, 43, 127);
/* oklch */ color: oklch(34.0% 0.141 271.4);
Tailwind
colors: {
  custom: {
    50: '#6b64a5',
    500: '#212b7f',
    950: '#000000',
  },
}
SCSS
$custom: #212b7f;
$custom-light: #6b64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212b7f",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 233.617,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34024,
    "c": 0.14064,
    "h": 271.4
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#212B7F
secondary
#B2A74A
accent
#D146E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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