#21239D#21239D

#21239D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.189 H 271.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#21239D
RGBrgb(33, 35, 157)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 62%)
CMYKcmyk(79%, 77.7%, 0%, 38.4%)
CIE-LABlab(23.54, 42.24, -65.18)
CIE-LCHlch(23.54, 77.67, 302.95°)
OKLaboklab(35.89% 0.0036 -0.1887)
OKLCHoklch(35.89% 0.189 271.1)
XYZxyz(7.3120, 3.9589, 32.2705)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21239D #9D9B21
analogous
#21619D #21239D #5D219D
triadic
#21239D #9D2123 #239D21
tetradic
#21239D #9D2161 #9D9B21 #219D5D
square
#21239D #9D2161 #9D9B21 #219D5D
split-complementary
#21239D #9D5D21 #619D21
monochromatic
#0C0C38 #16186A #21239D #2C2ED0 #5C5EDD

Accessibility & contrast

On white

11.72
#21239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#21239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21239D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21239D#FFFFFF#000000##FFFFFF
##21239D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21239d;
/* rgb */ color: rgb(33, 35, 157);
/* oklch */ color: oklch(35.9% 0.189 271.1);
Tailwind
colors: {
  custom: {
    50: '#7360bb',
    500: '#21239d',
    950: '#000000',
  },
}
SCSS
$custom: #21239d;
$custom-light: #7360bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21239d",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 239.032,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.18876,
    "h": 271.1
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#21239D
secondary
#C1BF59
accent
#E640E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21239D

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

Preview Lab → · Contrast checker → · Palette generator →

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