#213162#213162

#213162 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.089 H 267.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#213162
RGBrgb(33, 49, 98)
HSLhsl(225, 50%, 26%)
HSVhsv(225, 66%, 38%)
CMYKcmyk(66.3%, 50%, 0%, 61.6%)
CIE-LABlab(21.59, 10.88, -31.09)
CIE-LCHlch(21.59, 32.94, 289.29°)
OKLaboklab(32.79% -0.0036 -0.0889)
OKLCHoklch(32.79% 0.089 267.7)
XYZxyz(3.9294, 3.4015, 12.0024)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213162 #625221
analogous
#215162 #213162 #312162
triadic
#213162 #622131 #316221
tetradic
#213162 #622151 #625221 #216231
square
#213162 #622151 #625221 #216231
split-complementary
#213162 #623121 #516221
monochromatic
#080B17 #121A34 #213162 #304890 #405FBE

Accessibility & contrast

On white

12.50
#213162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#213162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213162
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213162#FFFFFF#000000##FFFFFF
##2131621.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193764
Deuteranopia (green-blind)
#0D3161
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #213162;
/* rgb */ color: rgb(33, 49, 98);
/* oklch */ color: oklch(32.8% 0.089 267.7);
Tailwind
colors: {
  custom: {
    50: '#64688f',
    500: '#213162',
    950: '#000000',
  },
}
SCSS
$custom: #213162;
$custom-light: #64688f;
$custom-dark: #000000;
JSON
{
  "hex": "#213162",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 225.231,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32791,
    "c": 0.08894,
    "h": 267.7
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#213162
secondary
#968349
accent
#B74FD9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #213162

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

Preview Lab → · Contrast checker → · Palette generator →

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