#21259E#21259E

#21259E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.188 H 270.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#21259E
RGBrgb(33, 37, 158)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(79.1%, 76.6%, 0%, 38%)
CIE-LABlab(24.05, 41.45, -64.95)
CIE-LCHlch(24.05, 77.05, 302.55°)
OKLaboklab(36.28% 0.0027 -0.1881)
OKLCHoklch(36.28% 0.188 270.8)
XYZxyz(7.4582, 4.1143, 32.7422)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259E #9E9A21
analogous
#21649E #21259E #5C219E
triadic
#21259E #9E2125 #259E21
tetradic
#21259E #9E2164 #9E9A21 #219E5C
square
#21259E #9E2164 #9E9A21 #219E5C
split-complementary
#21259E #9E5C21 #649E21
monochromatic
#0C0D39 #16196B #21259E #2C31D1 #5C60DD

Accessibility & contrast

On white

11.52
#21259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21259E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259E#FFFFFF#000000##FFFFFF
##21259E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21259e;
/* rgb */ color: rgb(33, 37, 158);
/* oklch */ color: oklch(36.3% 0.188 270.8);
Tailwind
colors: {
  custom: {
    50: '#7461bc',
    500: '#21259e',
    950: '#000000',
  },
}
SCSS
$custom: #21259e;
$custom-light: #7461bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21259e",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 238.08,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3628,
    "c": 0.1881,
    "h": 270.8
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#21259E
secondary
#C1BE59
accent
#E33FE8
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21259E

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

Preview Lab → · Contrast checker → · Palette generator →

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