#21337D#21337D

#21337D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.127 H 268.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#21337D
RGBrgb(33, 51, 125)
HSLhsl(228, 58%, 31%)
HSVhsv(228, 74%, 49%)
CMYKcmyk(73.6%, 59.2%, 0%, 51%)
CIE-LABlab(24.23, 20.13, -44.16)
CIE-LCHlch(24.23, 48.53, 294.50°)
OKLaboklab(35.44% -0.003 -0.1273)
OKLCHoklch(35.44% 0.127 268.7)
XYZxyz(5.5114, 4.1711, 19.9127)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21337D #7D6B21
analogous
#21617D #21337D #3D217D
triadic
#21337D #7D2133 #337D21
tetradic
#21337D #7D2161 #7D6B21 #217D3D
square
#21337D #7D2161 #7D6B21 #217D3D
split-complementary
#21337D #7D3D21 #617D21
monochromatic
#070B1C #141F4D #21337D #2E47AD #4964CF

Accessibility & contrast

On white

11.45
#21337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21337D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21337D#FFFFFF#000000##FFFFFF
##21337D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21337d;
/* rgb */ color: rgb(33, 51, 125);
/* oklch */ color: oklch(35.4% 0.127 268.7);
Tailwind
colors: {
  custom: {
    50: '#6a6aa3',
    500: '#21337d',
    950: '#000000',
  },
}
SCSS
$custom: #21337d;
$custom-light: #6a6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#21337d",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 228.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35443,
    "c": 0.12732,
    "h": 268.7
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#21337D
secondary
#B09C4A
accent
#C346E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21337D

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

Preview Lab → · Contrast checker → · Palette generator →

#21337D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva