#21259B#21259B

#21259B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.184 H 271.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#21259B
RGBrgb(33, 37, 155)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 61%)
CMYKcmyk(78.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(23.71, 40.42, -63.67)
CIE-LCHlch(23.71, 75.41, 302.41°)
OKLaboklab(35.95% 0.0032 -0.1844)
OKLCHoklch(35.95% 0.184 271)
XYZxyz(7.2032, 4.0122, 31.3988)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259B #9B9721
analogous
#21629B #21259B #5A219B
triadic
#21259B #9B2125 #259B21
tetradic
#21259B #9B2162 #9B9721 #219B5A
square
#21259B #9B2162 #9B9721 #219B5A
split-complementary
#21259B #9B5A21 #629B21
monochromatic
#0C0D36 #161969 #21259B #2C31CD #5A5FDC

Accessibility & contrast

On white

11.65
#21259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21259B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259B#FFFFFF#000000##FFFFFF
##21259B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21259b;
/* rgb */ color: rgb(33, 37, 155);
/* oklch */ color: oklch(35.9% 0.184 271.0);
Tailwind
colors: {
  custom: {
    50: '#7361ba',
    500: '#21259b',
    950: '#000000',
  },
}
SCSS
$custom: #21259b;
$custom-light: #7361ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21259b",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 238.033,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35945,
    "c": 0.18438,
    "h": 271
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#21259B
secondary
#C0BD58
accent
#E240E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21259B

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

Preview Lab → · Contrast checker → · Palette generator →

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