#212D6D#212D6D

#212D6D is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.112 H 270.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#212D6D
RGBrgb(33, 45, 109)
HSLhsl(231, 54%, 28%)
HSVhsv(231, 70%, 43%)
CMYKcmyk(69.7%, 58.7%, 0%, 57.3%)
CIE-LABlab(21.22, 18.07, -38.83)
CIE-LCHlch(21.22, 42.83, 294.95°)
OKLaboklab(32.78% 0.0018 -0.1117)
OKLCHoklch(32.78% 0.112 270.9)
XYZxyz(4.3250, 3.3038, 14.8748)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D6D #6D6121
analogous
#21536D #212D6D #3B216D
triadic
#212D6D #6D212D #2D6D21
tetradic
#212D6D #6D2153 #6D6121 #216D3B
square
#212D6D #6D2153 #6D6121 #216D3B
split-complementary
#212D6D #6D3B21 #536D21
monochromatic
#070A17 #131A3E #212D6D #2F409C #4257C6

Accessibility & contrast

On white

12.64
#212D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D6D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D6D#FFFFFF#000000##FFFFFF
##212D6D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212d6d;
/* rgb */ color: rgb(33, 45, 109);
/* oklch */ color: oklch(32.8% 0.112 270.9);
Tailwind
colors: {
  custom: {
    50: '#666597',
    500: '#212d6d',
    950: '#000000',
  },
}
SCSS
$custom: #212d6d;
$custom-light: #666597;
$custom-dark: #000000;
JSON
{
  "hex": "#212d6d",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 109
  },
  "hsl": {
    "h": 230.526,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.1117,
    "h": 270.9
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#212D6D
secondary
#A19349
accent
#C64BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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