#21337E#21337E

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

Color values

HEX#21337E
RGBrgb(33, 51, 126)
HSLhsl(228, 58%, 31%)
HSVhsv(228, 74%, 49%)
CMYKcmyk(73.8%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.31, 20.52, -44.66)
CIE-LCHlch(24.31, 49.15, 294.68°)
OKLaboklab(35.53% -0.0029 -0.1287)
OKLCHoklch(35.53% 0.129 268.7)
XYZxyz(5.5756, 4.1968, 20.2508)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21337E #7E6C21
analogous
#21617E #21337E #3D217E
triadic
#21337E #7E2133 #337E21
tetradic
#21337E #7E2161 #7E6C21 #217E3D
square
#21337E #7E2161 #7E6C21 #217E3D
split-complementary
#21337E #7E3D21 #617E21
monochromatic
#080C1D #141F4E #21337E #2E47AE #4A64D0

Accessibility & contrast

On white

11.42
#21337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#21337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21337E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21337E#FFFFFF#000000##FFFFFF
##21337E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21337e;
/* rgb */ color: rgb(33, 51, 126);
/* oklch */ color: oklch(35.5% 0.129 268.7);
Tailwind
colors: {
  custom: {
    50: '#6a6aa4',
    500: '#21337e',
    950: '#000000',
  },
}
SCSS
$custom: #21337e;
$custom-light: #6a6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#21337e",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 228.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.12877,
    "h": 268.7
  },
  "luminance": 0.04197
}

Semantic roles & 50–950 ramp

primary
#21337E
secondary
#B19D4A
accent
#C446E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21337E

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

Preview Lab → · Contrast checker → · Palette generator →

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