#21337F#21337F

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

Color values

HEX#21337F
RGBrgb(33, 51, 127)
HSLhsl(229, 59%, 31%)
HSVhsv(229, 74%, 50%)
CMYKcmyk(74%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.39, 20.91, -45.16)
CIE-LCHlch(24.39, 49.76, 294.85°)
OKLaboklab(35.62% -0.0029 -0.1302)
OKLCHoklch(35.62% 0.13 268.7)
XYZxyz(5.6405, 4.2227, 20.5924)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21337F #7F6D21
analogous
#21627F #21337F #3E217F
triadic
#21337F #7F2133 #337F21
tetradic
#21337F #7F2162 #7F6D21 #217F3E
square
#21337F #7F2162 #7F6D21 #217F3E
split-complementary
#21337F #7F3E21 #627F21
monochromatic
#080C1E #141F4E #21337F #2E47B0 #4A64D0

Accessibility & contrast

On white

11.38
#21337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21337F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21337F#FFFFFF#000000##FFFFFF
##21337F1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21337f;
/* rgb */ color: rgb(33, 51, 127);
/* oklch */ color: oklch(35.6% 0.130 268.7);
Tailwind
colors: {
  custom: {
    50: '#6a6aa5',
    500: '#21337f',
    950: '#000000',
  },
}
SCSS
$custom: #21337f;
$custom-light: #6a6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#21337f",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 228.511,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35618,
    "c": 0.13023,
    "h": 268.7
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21337F

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

Preview Lab → · Contrast checker → · Palette generator →

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