#21185E#21185E

#21185E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.3% C 0.118 H 281.0°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#21185E
RGBrgb(33, 24, 94)
HSLhsl(248, 59%, 23%)
HSVhsv(248, 74%, 37%)
CMYKcmyk(64.9%, 74.5%, 0%, 63.1%)
CIE-LABlab(14.31, 26.89, -40.25)
CIE-LCHlch(14.31, 48.40, 303.75°)
OKLaboklab(27.29% 0.0225 -0.116)
OKLCHoklch(27.29% 0.118 281)
XYZxyz(2.9736, 1.7845, 10.7753)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21185E #555E18
analogous
#18325E #21185E #44185E
triadic
#21185E #5E2118 #185E21
tetradic
#21185E #5E1832 #555E18 #185E44
square
#21185E #5E1832 #555E18 #185E44
split-complementary
#21185E #5E4418 #325E18
monochromatic
#090618 #100C2D #21185E #32248F #4331C0

Accessibility & contrast

On white

15.48
#21185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21185E
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21185E#FFFFFF#000000##FFFFFF
##21185E1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21185e;
/* rgb */ color: rgb(33, 24, 94);
/* oklch */ color: oklch(27.3% 0.118 281.0);
Tailwind
colors: {
  custom: {
    50: '#65568c',
    500: '#21185e',
    950: '#000000',
  },
}
SCSS
$custom: #21185e;
$custom-light: #65568c;
$custom-dark: #000000;
JSON
{
  "hex": "#21185e",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 247.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27287,
    "c": 0.11815,
    "h": 281
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#21185E
secondary
#89943D
accent
#E345CE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21185E

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

Preview Lab → · Contrast checker → · Palette generator →

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