#21259C#21259C

#21259C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.186 H 270.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#21259C
RGBrgb(33, 37, 156)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 61%)
CMYKcmyk(78.8%, 76.3%, 0%, 38.8%)
CIE-LABlab(23.82, 40.76, -64.09)
CIE-LCHlch(23.82, 75.96, 302.46°)
OKLaboklab(36.06% 0.003 -0.1856)
OKLCHoklch(36.06% 0.186 270.9)
XYZxyz(7.2875, 4.0460, 31.8429)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259C #9C9821
analogous
#21629C #21259C #5B219C
triadic
#21259C #9C2125 #259C21
tetradic
#21259C #9C2162 #9C9821 #219C5B
square
#21259C #9C2162 #9C9821 #219C5B
split-complementary
#21259C #9C5B21 #629C21
monochromatic
#0C0D37 #161969 #21259C #2C31CF #5B5FDC

Accessibility & contrast

On white

11.61
#21259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#21259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21259C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259C#FFFFFF#000000##FFFFFF
##21259C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21259c;
/* rgb */ color: rgb(33, 37, 156);
/* oklch */ color: oklch(36.1% 0.186 270.9);
Tailwind
colors: {
  custom: {
    50: '#7361ba',
    500: '#21259c',
    950: '#000000',
  },
}
SCSS
$custom: #21259c;
$custom-light: #7361ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21259c",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 238.049,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36057,
    "c": 0.18562,
    "h": 270.9
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#21259C
secondary
#C1BD58
accent
#E340E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21259C

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

Preview Lab → · Contrast checker → · Palette generator →

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