#21187C#21187C

#21187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.158 H 275.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#21187C
RGBrgb(33, 24, 124)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(73.4%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.61, 37.24, -54.39)
CIE-LCHlch(17.61, 65.92, 304.40°)
OKLaboklab(30.6% 0.0155 -0.1573)
OKLCHoklch(30.6% 0.158 275.6)
XYZxyz(4.5907, 2.4314, 19.2922)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21187C #737C18
analogous
#18417C #21187C #53187C
triadic
#21187C #7C2118 #187C21
tetradic
#21187C #7C1841 #737C18 #187C53
square
#21187C #7C1841 #737C18 #187C53
split-complementary
#21187C #7C5318 #417C18
monochromatic
#07051A #130E49 #21187C #2F22AF #4536D8

Accessibility & contrast

On white

14.13
#21187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21187C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21187C#FFFFFF#000000##FFFFFF
##21187C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21187c;
/* rgb */ color: rgb(33, 24, 124);
/* oklch */ color: oklch(30.6% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c57a3',
    500: '#21187c',
    950: '#000000',
  },
}
SCSS
$custom: #21187c;
$custom-light: #6c57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21187c",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 245.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30602,
    "c": 0.15802,
    "h": 275.6
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#21187C
secondary
#A6B13F
accent
#EA3DDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21187C

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

Preview Lab → · Contrast checker → · Palette generator →

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