#21239C#21239C

#21239C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.188 H 271.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#21239C
RGBrgb(33, 35, 156)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 61%)
CMYKcmyk(78.8%, 77.6%, 0%, 38.8%)
CIE-LABlab(23.42, 41.90, -64.76)
CIE-LCHlch(23.42, 77.13, 302.91°)
OKLaboklab(35.77% 0.0038 -0.1875)
OKLCHoklch(35.77% 0.188 271.1)
XYZxyz(7.2269, 3.9249, 31.8227)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21239C #9C9A21
analogous
#21619C #21239C #5C219C
triadic
#21239C #9C2123 #239C21
tetradic
#21239C #9C2161 #9C9A21 #219C5C
square
#21239C #9C2161 #9C9A21 #219C5C
split-complementary
#21239C #9C5C21 #619C21
monochromatic
#0C0C37 #161869 #21239C #2C2ECF #5B5DDC

Accessibility & contrast

On white

11.76
#21239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21239C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21239C#FFFFFF#000000##FFFFFF
##21239C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21239c;
/* rgb */ color: rgb(33, 35, 156);
/* oklch */ color: oklch(35.8% 0.188 271.1);
Tailwind
colors: {
  custom: {
    50: '#7360ba',
    500: '#21239c',
    950: '#000000',
  },
}
SCSS
$custom: #21239c;
$custom-light: #7360ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21239c",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 239.024,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.18754,
    "h": 271.1
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#21239C
secondary
#C1BF58
accent
#E540E8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21239C

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

Preview Lab → · Contrast checker → · Palette generator →

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