#21258E#21258E

#21258E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.168 H 271.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#21258E
RGBrgb(33, 37, 142)
HSLhsl(238, 62%, 34%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(76.8%, 73.9%, 0%, 44.3%)
CIE-LABlab(22.30, 35.87, -57.98)
CIE-LCHlch(22.30, 68.17, 301.74°)
OKLaboklab(34.52% 0.0054 -0.1678)
OKLCHoklch(34.52% 0.168 271.8)
XYZxyz(6.1696, 3.5988, 25.9554)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21258E #8E8A21
analogous
#215C8E #21258E #54218E
triadic
#21258E #8E2125 #258E21
tetradic
#21258E #8E215C #8E8A21 #218E54
square
#21258E #8E215C #8E8A21 #218E54
split-complementary
#21258E #8E5421 #5C8E21
monochromatic
#0A0B2B #15185C #21258E #2D32C0 #5257D7

Accessibility & contrast

On white

12.21
#21258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#21258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21258E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21258E#FFFFFF#000000##FFFFFF
##21258E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21258e;
/* rgb */ color: rgb(33, 37, 142);
/* oklch */ color: oklch(34.5% 0.168 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f60b0',
    500: '#21258e',
    950: '#000000',
  },
}
SCSS
$custom: #21258e;
$custom-light: #6f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21258e",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 237.798,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.1679,
    "h": 271.8
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#21258E
secondary
#BAB750
accent
#DF42E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21258E

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

Preview Lab → · Contrast checker → · Palette generator →

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