#213161#213161

#213161 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.7% C 0.087 H 267.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#213161
RGBrgb(33, 49, 97)
HSLhsl(225, 49%, 25%)
HSVhsv(225, 66%, 38%)
CMYKcmyk(66%, 49.5%, 0%, 62%)
CIE-LABlab(21.52, 10.49, -30.55)
CIE-LCHlch(21.52, 32.30, 288.95°)
OKLaboklab(32.72% -0.0037 -0.0873)
OKLCHoklch(32.72% 0.087 267.6)
XYZxyz(3.8824, 3.3827, 11.7553)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213161 #615121
analogous
#215161 #213161 #312161
triadic
#213161 #612131 #316121
tetradic
#213161 #612151 #615121 #216131
square
#213161 #612151 #615121 #216131
split-complementary
#213161 #613121 #516121
monochromatic
#080C17 #111A33 #213161 #31488F #405FBC

Accessibility & contrast

On white

12.53
#213161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213161
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213161#FFFFFF#000000##FFFFFF
##2131611.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3763
Deuteranopia (green-blind)
#0F3160
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #213161;
/* rgb */ color: rgb(33, 49, 97);
/* oklch */ color: oklch(32.7% 0.087 267.6);
Tailwind
colors: {
  custom: {
    50: '#63688e',
    500: '#213161',
    950: '#000000',
  },
}
SCSS
$custom: #213161;
$custom-light: #63688e;
$custom-dark: #000000;
JSON
{
  "hex": "#213161",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 225,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32716,
    "c": 0.08735,
    "h": 267.6
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#213161
secondary
#958249
accent
#B64FD9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #213161

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

Preview Lab → · Contrast checker → · Palette generator →

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