#21258F#21258F

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

Color values

HEX#21258F
RGBrgb(33, 37, 143)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(76.9%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.40, 36.22, -58.42)
CIE-LCHlch(22.40, 68.74, 301.80°)
OKLaboklab(34.63% 0.0052 -0.1691)
OKLCHoklch(34.63% 0.169 271.8)
XYZxyz(6.2450, 3.6290, 26.3526)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21258F #8F8B21
analogous
#215C8F #21258F #54218F
triadic
#21258F #8F2125 #258F21
tetradic
#21258F #8F215C #8F8B21 #218F54
square
#21258F #8F215C #8F8B21 #218F54
split-complementary
#21258F #8F5421 #5C8F21
monochromatic
#0A0B2C #16185D #21258F #2C32C1 #5358D7

Accessibility & contrast

On white

12.17
#21258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#21258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21258F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21258F#FFFFFF#000000##FFFFFF
##21258F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21258f;
/* rgb */ color: rgb(33, 37, 143);
/* oklch */ color: oklch(34.6% 0.169 271.8);
Tailwind
colors: {
  custom: {
    50: '#7060b1',
    500: '#21258f',
    950: '#000000',
  },
}
SCSS
$custom: #21258f;
$custom-light: #7060b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21258f",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 237.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34627,
    "c": 0.16918,
    "h": 271.8
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#21258F
secondary
#BBB751
accent
#E042E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21258F

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

Preview Lab → · Contrast checker → · Palette generator →

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