#21258C#21258C

#21258C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.165 H 272.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#21258C
RGBrgb(33, 37, 140)
HSLhsl(238, 62%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(76.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.09, 35.15, -57.08)
CIE-LCHlch(22.09, 67.04, 301.63°)
OKLaboklab(34.3% 0.0057 -0.1652)
OKLCHoklch(34.3% 0.165 272)
XYZxyz(6.0208, 3.5393, 25.1717)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21258C #8C8821
analogous
#215B8C #21258C #53218C
triadic
#21258C #8C2125 #258C21
tetradic
#21258C #8C215B #8C8821 #218C53
square
#21258C #8C215B #8C8821 #218C53
split-complementary
#21258C #8C5321 #5B8C21
monochromatic
#0A0B29 #15185A #21258C #2D32BE #5156D6

Accessibility & contrast

On white

12.30
#21258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#21258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21258C
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21258C#FFFFFF#000000##FFFFFF
##21258C1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21258c;
/* rgb */ color: rgb(33, 37, 140);
/* oklch */ color: oklch(34.3% 0.165 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f60af',
    500: '#21258c',
    950: '#000000',
  },
}
SCSS
$custom: #21258c;
$custom-light: #6f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#21258c",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 237.757,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.1653,
    "h": 272
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#21258C
secondary
#B9B64F
accent
#DF43E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #21258C

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

Preview Lab → · Contrast checker → · Palette generator →

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