#21239F#21239F

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

Color values

HEX#21239F
RGBrgb(33, 35, 159)
HSLhsl(239, 66%, 38%)
HSVhsv(239, 79%, 62%)
CMYKcmyk(79.2%, 78%, 0%, 37.6%)
CIE-LABlab(23.76, 42.91, -66.03)
CIE-LCHlch(23.76, 78.75, 303.02°)
OKLaboklab(36.11% 0.0032 -0.1912)
OKLCHoklch(36.11% 0.191 271)
XYZxyz(7.4841, 4.0278, 33.1772)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21239F #9F9D21
analogous
#21629F #21239F #5E219F
triadic
#21239F #9F2123 #239F21
tetradic
#21239F #9F2162 #9F9D21 #219F5E
square
#21239F #9F2162 #9F9D21 #219F5E
split-complementary
#21239F #9F5E21 #629F21
monochromatic
#0C0D3A #16186C #21239F #2C2ED2 #5D5FDD

Accessibility & contrast

On white

11.63
#21239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#21239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21239F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21239F#FFFFFF#000000##FFFFFF
##21239F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21239f;
/* rgb */ color: rgb(33, 35, 159);
/* oklch */ color: oklch(36.1% 0.191 271.0);
Tailwind
colors: {
  custom: {
    50: '#7460bd',
    500: '#21239f',
    950: '#000000',
  },
}
SCSS
$custom: #21239f;
$custom-light: #7460bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21239f",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 239.048,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.19121,
    "h": 271
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#21239F
secondary
#C2C05A
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21239F

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

Preview Lab → · Contrast checker → · Palette generator →

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