#21185B#21185B

#21185B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.0% C 0.114 H 281.7°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#21185B
RGBrgb(33, 24, 91)
HSLhsl(248, 58%, 23%)
HSVhsv(248, 74%, 36%)
CMYKcmyk(63.7%, 73.6%, 0%, 64.3%)
CIE-LABlab(14.01, 25.82, -38.73)
CIE-LCHlch(14.01, 46.55, 303.69°)
OKLaboklab(26.98% 0.0231 -0.1115)
OKLCHoklch(26.98% 0.114 281.7)
XYZxyz(2.8416, 1.7317, 10.0800)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21185B #525B18
analogous
#18305B #21185B #43185B
triadic
#21185B #5B2118 #185B21
tetradic
#21185B #5B1830 #525B18 #185B43
square
#21185B #5B1830 #525B18 #185B43
split-complementary
#21185B #5B4318 #305B18
monochromatic
#090618 #0F0B2B #21185B #33258B #4432BC

Accessibility & contrast

On white

15.60
#21185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#21185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21185B
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21185B#FFFFFF#000000##FFFFFF
##21185B1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21185b;
/* rgb */ color: rgb(33, 24, 91);
/* oklch */ color: oklch(27.0% 0.114 281.7);
Tailwind
colors: {
  custom: {
    50: '#64568a',
    500: '#21185b',
    950: '#000000',
  },
}
SCSS
$custom: #21185b;
$custom-light: #64568a;
$custom-dark: #000000;
JSON
{
  "hex": "#21185b",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 248.06,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26978,
    "c": 0.11391,
    "h": 281.7
  },
  "luminance": 0.01732
}

Semantic roles & 50–950 ramp

primary
#21185B
secondary
#86923D
accent
#E146CD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21185B

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

Preview Lab → · Contrast checker → · Palette generator →

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