#21336A#21336A

#21336A is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.099 H 267.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#21336A
RGBrgb(33, 51, 106)
HSLhsl(225, 53%, 27%)
HSVhsv(225, 69%, 42%)
CMYKcmyk(68.9%, 51.9%, 0%, 58.4%)
CIE-LABlab(22.76, 12.61, -34.40)
CIE-LCHlch(22.76, 36.64, 290.13°)
OKLaboklab(33.87% -0.0046 -0.0986)
OKLCHoklch(33.87% 0.099 267.3)
XYZxyz(4.4117, 3.7312, 14.1206)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21336A #6A5821
analogous
#21586A #21336A #33216A
triadic
#21336A #6A2133 #336A21
tetradic
#21336A #6A2158 #6A5821 #216A33
square
#21336A #6A2158 #6A5821 #216A33
split-complementary
#21336A #6A3321 #586A21
monochromatic
#070B17 #121D3B #21336A #304999 #4162C4

Accessibility & contrast

On white

12.02
#21336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21336A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21336A#FFFFFF#000000##FFFFFF
##21336A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6C
Deuteranopia (green-blind)
#043369
Tritanopia (blue-blind)
#004049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21336a;
/* rgb */ color: rgb(33, 51, 106);
/* oklch */ color: oklch(33.9% 0.099 267.3);
Tailwind
colors: {
  custom: {
    50: '#656a95',
    500: '#21336a',
    950: '#000000',
  },
}
SCSS
$custom: #21336a;
$custom-light: #656a95;
$custom-dark: #000000;
JSON
{
  "hex": "#21336a",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 225.205,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3387,
    "c": 0.09868,
    "h": 267.3
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#21336A
secondary
#9E8949
accent
#B84CDC
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #21336A

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

Preview Lab → · Contrast checker → · Palette generator →

#21336A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva