#21259F#21259F

#21259F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.189 H 270.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#21259F
RGBrgb(33, 37, 159)
HSLhsl(238, 66%, 38%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(79.2%, 76.7%, 0%, 37.6%)
CIE-LABlab(24.16, 41.79, -65.37)
CIE-LCHlch(24.16, 77.59, 302.59°)
OKLaboklab(36.39% 0.0025 -0.1893)
OKLCHoklch(36.39% 0.189 270.8)
XYZxyz(7.5446, 4.1488, 33.1973)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259F #9F9B21
analogous
#21649F #21259F #5C219F
triadic
#21259F #9F2125 #259F21
tetradic
#21259F #9F2164 #9F9B21 #219F5C
square
#21259F #9F2164 #9F9B21 #219F5C
split-complementary
#21259F #9F5C21 #649F21
monochromatic
#0C0D3A #16196C #21259F #2C31D2 #5D61DD

Accessibility & contrast

On white

11.48
#21259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21259F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259F#FFFFFF#000000##FFFFFF
##21259F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21259f;
/* rgb */ color: rgb(33, 37, 159);
/* oklch */ color: oklch(36.4% 0.189 270.8);
Tailwind
colors: {
  custom: {
    50: '#7461bd',
    500: '#21259f',
    950: '#000000',
  },
}
SCSS
$custom: #21259f;
$custom-light: #7461bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21259f",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 238.095,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.18933,
    "h": 270.8
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#21259F
secondary
#C2BF5A
accent
#E33FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21259F

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

Preview Lab → · Contrast checker → · Palette generator →

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