#21257B#21257B

#21257B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.143 H 273.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#21257B
RGBrgb(33, 37, 123)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 73%, 48%)
CMYKcmyk(73.2%, 69.9%, 0%, 51.8%)
CIE-LABlab(20.35, 28.95, -49.24)
CIE-LCHlch(20.35, 57.12, 300.46°)
OKLaboklab(32.52% 0.008 -0.1423)
OKLCHoklch(32.52% 0.143 273.2)
XYZxyz(4.8627, 3.0761, 19.0725)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21257B #7B7721
analogous
#21527B #21257B #4A217B
triadic
#21257B #7B2125 #257B21
tetradic
#21257B #7B2152 #7B7721 #217B4A
square
#21257B #7B2152 #7B7721 #217B4A
split-complementary
#21257B #7B4A21 #527B21
monochromatic
#07081A #14164B #21257B #2E34AB #484ECE

Accessibility & contrast

On white

13.00
#21257B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#21257B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21257B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21257B#FFFFFF#000000##FFFFFF
##21257B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21257b;
/* rgb */ color: rgb(33, 37, 123);
/* oklch */ color: oklch(32.5% 0.143 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b60a2',
    500: '#21257b',
    950: '#000000',
  },
}
SCSS
$custom: #21257b;
$custom-light: #6b60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21257b",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 123
  },
  "hsl": {
    "h": 237.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32524,
    "c": 0.14252,
    "h": 273.2
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#21257B
secondary
#AEA94A
accent
#DA47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21257B

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

Preview Lab → · Contrast checker → · Palette generator →

#21257B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva