#213151#213151

#213151 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.061 H 263.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#213151
RGBrgb(33, 49, 81)
HSLhsl(220, 42%, 22%)
HSVhsv(220, 59%, 32%)
CMYKcmyk(59.3%, 39.5%, 0%, 68.2%)
CIE-LABlab(20.49, 4.32, -21.59)
CIE-LCHlch(20.49, 22.02, 281.32°)
OKLaboklab(31.6% -0.0073 -0.061)
OKLCHoklch(31.6% 0.061 263.2)
XYZxyz(3.2102, 3.1138, 8.2148)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213151 #514121
analogous
#214951 #213151 #292151
triadic
#213151 #512131 #315121
tetradic
#213151 #512149 #514121 #215129
square
#213151 #512149 #514121 #215129
split-complementary
#213151 #512921 #495121
monochromatic
#090D16 #0F1726 #213151 #334B7C #4466A8

Accessibility & contrast

On white

12.94
#213151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#213151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213151
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213151#FFFFFF#000000##FFFFFF
##2131511.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243452
Deuteranopia (green-blind)
#1E2F50
Tritanopia (blue-blind)
#07383D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #213151;
/* rgb */ color: rgb(33, 49, 81);
/* oklch */ color: oklch(31.6% 0.061 263.2);
Tailwind
colors: {
  custom: {
    50: '#606882',
    500: '#213151',
    950: '#000000',
  },
}
SCSS
$custom: #213151;
$custom-light: #606882;
$custom-dark: #000000;
JSON
{
  "hex": "#213151",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 220,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.06146,
    "h": 263.2
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#213151
secondary
#857149
accent
#A956D2
background
#F5F6F7
surface
#EAEBEE
border
#C6C6C9
text
#05060A
muted
#797A7C

Preview Lab

Preview with #213151

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

Preview Lab → · Contrast checker → · Palette generator →

#213151 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva