#212B8D#212B8D

#212B8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.160 H 270.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#212B8D
RGBrgb(33, 43, 141)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 77%, 55%)
CMYKcmyk(76.6%, 69.5%, 0%, 44.7%)
CIE-LABlab(23.58, 31.70, -55.24)
CIE-LCHlch(23.58, 63.69, 299.85°)
OKLaboklab(35.41% 0.0022 -0.1598)
OKLCHoklch(35.41% 0.16 270.8)
XYZxyz(6.2972, 3.9735, 25.6292)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212B8D #8D8321
analogous
#21618D #212B8D #4D218D
triadic
#212B8D #8D212B #2B8D21
tetradic
#212B8D #8D2161 #8D8321 #218D4D
square
#212B8D #8D2161 #8D8321 #218D4D
split-complementary
#212B8D #8D4D21 #618D21
monochromatic
#0A0D2A #151C5B #212B8D #2D3ABF #525ED6

Accessibility & contrast

On white

11.70
#212B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212B8D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212B8D#FFFFFF#000000##FFFFFF
##212B8D1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212b8d;
/* rgb */ color: rgb(33, 43, 141);
/* oklch */ color: oklch(35.4% 0.160 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f64af',
    500: '#212b8d',
    950: '#000000',
  },
}
SCSS
$custom: #212b8d;
$custom-light: #6f64af;
$custom-dark: #000000;
JSON
{
  "hex": "#212b8d",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 234.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35414,
    "c": 0.15984,
    "h": 270.8
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#212B8D
secondary
#BAB050
accent
#D643E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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