#212D4E#212D4E

#212D4E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.4% C 0.062 H 267.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#212D4E
RGBrgb(33, 45, 78)
HSLhsl(224, 41%, 22%)
HSVhsv(224, 58%, 31%)
CMYKcmyk(57.7%, 42.3%, 0%, 69.4%)
CIE-LABlab(19.01, 6.04, -21.91)
CIE-LCHlch(19.01, 22.73, 285.41°)
OKLaboklab(30.39% -0.0027 -0.062)
OKLCHoklch(30.39% 0.062 267.5)
XYZxyz(2.9403, 2.7500, 7.5821)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D4E #4E4221
analogous
#21444E #212D4E #2C214E
triadic
#212D4E #4E212D #2D4E21
tetradic
#212D4E #4E2144 #4E4221 #214E2C
square
#212D4E #4E2144 #4E4221 #214E2C
split-complementary
#212D4E #4E2C21 #444E21
monochromatic
#090C16 #0F1423 #212D4E #334679 #455FA4

Accessibility & contrast

On white

13.55
#212D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#212D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D4E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D4E#FFFFFF#000000##FFFFFF
##212D4E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20304F
Deuteranopia (green-blind)
#1B2C4D
Tritanopia (blue-blind)
#0B3439
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212d4e;
/* rgb */ color: rgb(33, 45, 78);
/* oklch */ color: oklch(30.4% 0.062 267.5);
Tailwind
colors: {
  custom: {
    50: '#606580',
    500: '#212d4e',
    950: '#000000',
  },
}
SCSS
$custom: #212d4e;
$custom-light: #606580;
$custom-dark: #000000;
JSON
{
  "hex": "#212d4e",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 224,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30393,
    "c": 0.06206,
    "h": 267.5
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#212D4E
secondary
#827349
accent
#B057D0
background
#F5F6F7
surface
#EAEBEE
border
#C6C6C9
text
#05050A
muted
#797A7C

Preview Lab

Preview with #212D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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