#21238B#21238B

#21238B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.166 H 272.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#21238B
RGBrgb(33, 35, 139)
HSLhsl(239, 62%, 34%)
HSVhsv(239, 76%, 55%)
CMYKcmyk(76.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.54, 36.02, -57.36)
CIE-LCHlch(21.54, 67.73, 302.13°)
OKLaboklab(33.88% 0.0069 -0.166)
OKLCHoklch(33.88% 0.166 272.4)
XYZxyz(5.8869, 3.3889, 24.7650)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21238B #8B8921
analogous
#21588B #21238B #54218B
triadic
#21238B #8B2123 #238B21
tetradic
#21238B #8B2158 #8B8921 #218B54
square
#21238B #8B2158 #8B8921 #218B54
split-complementary
#21238B #8B5421 #588B21
monochromatic
#0A0A28 #15175A #21238B #2D2FBC #5153D6

Accessibility & contrast

On white

12.52
#21238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21238B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21238B#FFFFFF#000000##FFFFFF
##21238B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21238b;
/* rgb */ color: rgb(33, 35, 139);
/* oklch */ color: oklch(33.9% 0.166 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f5fae',
    500: '#21238b',
    950: '#000000',
  },
}
SCSS
$custom: #21238b;
$custom-light: #6f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#21238b",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 238.868,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3388,
    "c": 0.16614,
    "h": 272.4
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#21238B
secondary
#B9B74F
accent
#E243E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #21238B

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

Preview Lab → · Contrast checker → · Palette generator →

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