#21337C#21337C

#21337C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.126 H 268.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#21337C
RGBrgb(33, 51, 124)
HSLhsl(228, 58%, 31%)
HSVhsv(228, 73%, 49%)
CMYKcmyk(73.4%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.15, 19.73, -43.66)
CIE-LCHlch(24.15, 47.92, 294.32°)
OKLaboklab(35.36% -0.003 -0.1258)
OKLCHoklch(35.36% 0.126 268.6)
XYZxyz(5.4479, 4.1457, 19.5780)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21337C #7C6A21
analogous
#21607C #21337C #3C217C
triadic
#21337C #7C2133 #337C21
tetradic
#21337C #7C2160 #7C6A21 #217C3C
square
#21337C #7C2160 #7C6A21 #217C3C
split-complementary
#21337C #7C3C21 #607C21
monochromatic
#070B1B #141F4C #21337C #2E47AC #4963CF

Accessibility & contrast

On white

11.48
#21337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21337C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21337C#FFFFFF#000000##FFFFFF
##21337C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21337c;
/* rgb */ color: rgb(33, 51, 124);
/* oklch */ color: oklch(35.4% 0.126 268.6);
Tailwind
colors: {
  custom: {
    50: '#696aa3',
    500: '#21337c',
    950: '#000000',
  },
}
SCSS
$custom: #21337c;
$custom-light: #696aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#21337c",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 228.132,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.12586,
    "h": 268.6
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#21337C
secondary
#AF9B4A
accent
#C347E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21337C

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

Preview Lab → · Contrast checker → · Palette generator →

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