#21335D#21335D

#21335D is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.9% C 0.078 H 264.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#21335D
RGBrgb(33, 51, 93)
HSLhsl(222, 48%, 25%)
HSVhsv(222, 65%, 36%)
CMYKcmyk(64.5%, 45.2%, 0%, 63.5%)
CIE-LABlab(21.88, 7.50, -27.35)
CIE-LCHlch(21.88, 28.36, 285.34°)
OKLaboklab(32.91% -0.0069 -0.0778)
OKLCHoklch(32.91% 0.078 264.9)
XYZxyz(3.7861, 3.4810, 10.8262)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21335D #5D4B21
analogous
#21515D #21335D #2D215D
triadic
#21335D #5D2133 #335D21
tetradic
#21335D #5D2151 #5D4B21 #215D2D
square
#21335D #5D2151 #5D4B21 #215D2D
split-complementary
#21335D #5D2D21 #515D21
monochromatic
#080C17 #111A30 #21335D #314C8A #4165B7

Accessibility & contrast

On white

12.38
#21335D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#21335D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21335D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21335D#FFFFFF#000000##FFFFFF
##21335D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375F
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21335d;
/* rgb */ color: rgb(33, 51, 93);
/* oklch */ color: oklch(32.9% 0.078 264.9);
Tailwind
colors: {
  custom: {
    50: '#626a8b',
    500: '#21335d',
    950: '#000000',
  },
}
SCSS
$custom: #21335d;
$custom-light: #626a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21335d",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 222,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32906,
    "c": 0.07815,
    "h": 264.9
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#21335D
secondary
#917B49
accent
#AF51D7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #21335D

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

Preview Lab → · Contrast checker → · Palette generator →

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