#21239E#21239E

#21239E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.190 H 271.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#21239E
RGBrgb(33, 35, 158)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 62%)
CMYKcmyk(79.1%, 77.8%, 0%, 38%)
CIE-LABlab(23.65, 42.58, -65.60)
CIE-LCHlch(23.65, 78.21, 302.98°)
OKLaboklab(36% 0.0034 -0.19)
OKLCHoklch(36% 0.19 271)
XYZxyz(7.3977, 3.9932, 32.7220)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21239E #9E9C21
analogous
#21629E #21239E #5E219E
triadic
#21239E #9E2123 #239E21
tetradic
#21239E #9E2162 #9E9C21 #219E5E
square
#21239E #9E2162 #9E9C21 #219E5E
split-complementary
#21239E #9E5E21 #629E21
monochromatic
#0C0D39 #16186B #21239E #2C2ED1 #5C5EDD

Accessibility & contrast

On white

11.67
#21239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21239E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21239E#FFFFFF#000000##FFFFFF
##21239E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21239e;
/* rgb */ color: rgb(33, 35, 158);
/* oklch */ color: oklch(36.0% 0.190 271.0);
Tailwind
colors: {
  custom: {
    50: '#7460bc',
    500: '#21239e',
    950: '#000000',
  },
}
SCSS
$custom: #21239e;
$custom-light: #7460bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21239e",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 239.04,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36,
    "c": 0.18999,
    "h": 271
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#21239E
secondary
#C1C059
accent
#E63FE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21239E

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

Preview Lab → · Contrast checker → · Palette generator →

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