#21338B#21338B

#21338B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.147 H 268.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#21338B
RGBrgb(33, 51, 139)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(76.3%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.43, 25.59, -50.98)
CIE-LCHlch(25.43, 57.04, 296.66°)
OKLaboklab(36.71% -0.0029 -0.1473)
OKLCHoklch(36.71% 0.147 268.9)
XYZxyz(6.4696, 4.5544, 24.9592)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21338B #8B7921
analogous
#21688B #21338B #44218B
triadic
#21338B #8B2133 #338B21
tetradic
#21338B #8B2168 #8B7921 #218B44
square
#21338B #8B2168 #8B7921 #218B44
split-complementary
#21338B #8B4421 #688B21
monochromatic
#0A0F28 #15215A #21338B #2D45BC #5167D6

Accessibility & contrast

On white

10.99
#21338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#21338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21338B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21338B#FFFFFF#000000##FFFFFF
##21338B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21338b;
/* rgb */ color: rgb(33, 51, 139);
/* oklch */ color: oklch(36.7% 0.147 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d6aae',
    500: '#21338b',
    950: '#000000',
  },
}
SCSS
$custom: #21338b;
$custom-light: #6d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#21338b",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 229.811,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.14732,
    "h": 268.9
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#21338B
secondary
#B9A74F
accent
#C943E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21338B

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

Preview Lab → · Contrast checker → · Palette generator →

#21338B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva