#21185A#21185A

#21185A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.112 H 281.9°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#21185A
RGBrgb(33, 24, 90)
HSLhsl(248, 58%, 22%)
HSVhsv(248, 73%, 35%)
CMYKcmyk(63.3%, 73.3%, 0%, 64.7%)
CIE-LABlab(13.91, 25.47, -38.22)
CIE-LCHlch(13.91, 45.93, 303.68°)
OKLaboklab(26.88% 0.0232 -0.1101)
OKLCHoklch(26.88% 0.112 281.9)
XYZxyz(2.7987, 1.7146, 9.8543)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21185A #515A18
analogous
#18305A #21185A #42185A
triadic
#21185A #5A2118 #185A21
tetradic
#21185A #5A1830 #515A18 #185A42
square
#21185A #5A1830 #515A18 #185A42
split-complementary
#21185A #5A4218 #305A18
monochromatic
#090618 #0F0B2A #21185A #33258A #4432BB

Accessibility & contrast

On white

15.64
#21185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#21185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21185A
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21185A#FFFFFF#000000##FFFFFF
##21185A1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #21185a;
/* rgb */ color: rgb(33, 24, 90);
/* oklch */ color: oklch(26.9% 0.112 281.9);
Tailwind
colors: {
  custom: {
    50: '#645589',
    500: '#21185a',
    950: '#000000',
  },
}
SCSS
$custom: #21185a;
$custom-light: #645589;
$custom-dark: #000000;
JSON
{
  "hex": "#21185a",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 248.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26876,
    "c": 0.11248,
    "h": 281.9
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#21185A
secondary
#85913D
accent
#E147CC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21185A

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

Preview Lab → · Contrast checker → · Palette generator →

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