#21259D#21259D

#21259D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.187 H 270.9°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#21259D
RGBrgb(33, 37, 157)
HSLhsl(238, 65%, 37%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(79%, 76.4%, 0%, 38.4%)
CIE-LABlab(23.93, 41.11, -64.52)
CIE-LCHlch(23.93, 76.50, 302.50°)
OKLaboklab(36.17% 0.0028 -0.1868)
OKLCHoklch(36.17% 0.187 270.9)
XYZxyz(7.3725, 4.0800, 32.2907)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21259D #9D9921
analogous
#21639D #21259D #5B219D
triadic
#21259D #9D2125 #259D21
tetradic
#21259D #9D2163 #9D9921 #219D5B
square
#21259D #9D2163 #9D9921 #219D5B
split-complementary
#21259D #9D5B21 #639D21
monochromatic
#0C0D38 #16196A #21259D #2C31D0 #5C60DD

Accessibility & contrast

On white

11.56
#21259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21259D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21259D#FFFFFF#000000##FFFFFF
##21259D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21259d;
/* rgb */ color: rgb(33, 37, 157);
/* oklch */ color: oklch(36.2% 0.187 270.9);
Tailwind
colors: {
  custom: {
    50: '#7361bb',
    500: '#21259d',
    950: '#000000',
  },
}
SCSS
$custom: #21259d;
$custom-light: #7361bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21259d",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 238.065,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36168,
    "c": 0.18686,
    "h": 270.9
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21259D

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

Preview Lab → · Contrast checker → · Palette generator →

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