#21259A#21259A

#21259A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.183 H 271.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#21259A
RGBrgb(33, 37, 154)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 60%)
CMYKcmyk(78.6%, 76%, 0%, 39.6%)
CIE-LABlab(23.60, 40.07, -63.24)
CIE-LCHlch(23.60, 74.86, 302.36°)
OKLaboklab(35.83% 0.0034 -0.1831)
OKLCHoklch(35.83% 0.183 271.1)
XYZxyz(7.1195, 3.9788, 30.9583)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259A #9A9621
analogous
#21619A #21259A #5A219A
triadic
#21259A #9A2125 #259A21
tetradic
#21259A #9A2161 #9A9621 #219A5A
square
#21259A #9A2161 #9A9621 #219A5A
split-complementary
#21259A #9A5A21 #619A21
monochromatic
#0B0D35 #161968 #21259A #2C31CC #5A5EDC

Accessibility & contrast

On white

11.69
#21259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21259A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259A#FFFFFF#000000##FFFFFF
##21259A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21259a;
/* rgb */ color: rgb(33, 37, 154);
/* oklch */ color: oklch(35.8% 0.183 271.1);
Tailwind
colors: {
  custom: {
    50: '#7261b9',
    500: '#21259a',
    950: '#000000',
  },
}
SCSS
$custom: #21259a;
$custom-light: #7261b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21259a",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 238.017,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35834,
    "c": 0.18313,
    "h": 271.1
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21259A

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

Preview Lab → · Contrast checker → · Palette generator →

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