#21185C#21185C

#21185C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.1% C 0.115 H 281.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#21185C
RGBrgb(33, 24, 92)
HSLhsl(248, 59%, 23%)
HSVhsv(248, 74%, 36%)
CMYKcmyk(64.1%, 73.9%, 0%, 63.9%)
CIE-LABlab(14.11, 26.18, -39.24)
CIE-LCHlch(14.11, 47.17, 303.71°)
OKLaboklab(27.08% 0.0229 -0.113)
OKLCHoklch(27.08% 0.115 281.4)
XYZxyz(2.8850, 1.7491, 10.3087)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21185C #535C18
analogous
#18315C #21185C #43185C
triadic
#21185C #5C2118 #185C21
tetradic
#21185C #5C1831 #535C18 #185C43
square
#21185C #5C1831 #535C18 #185C43
split-complementary
#21185C #5C4318 #315C18
monochromatic
#090618 #100B2B #21185C #32258D #4431BD

Accessibility & contrast

On white

15.56
#21185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21185C
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21185C#FFFFFF#000000##FFFFFF
##21185C1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21185c;
/* rgb */ color: rgb(33, 24, 92);
/* oklch */ color: oklch(27.1% 0.115 281.4);
Tailwind
colors: {
  custom: {
    50: '#64568b',
    500: '#21185c',
    950: '#000000',
  },
}
SCSS
$custom: #21185c;
$custom-light: #64568b;
$custom-dark: #000000;
JSON
{
  "hex": "#21185c",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 247.941,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2708,
    "c": 0.11533,
    "h": 281.4
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#21185C
secondary
#87933D
accent
#E246CD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #21185C

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

Preview Lab → · Contrast checker → · Palette generator →

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