#21187D#21187D

#21187D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.159 H 275.5°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#21187D
RGBrgb(33, 24, 125)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 49%)
CMYKcmyk(73.6%, 80.8%, 0%, 51%)
CIE-LABlab(17.72, 37.57, -54.84)
CIE-LCHlch(17.72, 66.47, 304.42°)
OKLaboklab(30.72% 0.0152 -0.1585)
OKLCHoklch(30.72% 0.159 275.5)
XYZxyz(4.6543, 2.4568, 19.6270)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21187D #747D18
analogous
#18417D #21187D #54187D
triadic
#21187D #7D2118 #187D21
tetradic
#21187D #7D1841 #747D18 #187D54
square
#21187D #7D1841 #747D18 #187D54
split-complementary
#21187D #7D5418 #417D18
monochromatic
#07051A #130E4A #21187D #2F22B0 #4537D9

Accessibility & contrast

On white

14.08
#21187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21187D
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21187D#FFFFFF#000000##FFFFFF
##21187D1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21187d;
/* rgb */ color: rgb(33, 24, 125);
/* oklch */ color: oklch(30.7% 0.159 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#21187d',
    950: '#000000',
  },
}
SCSS
$custom: #21187d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21187d",
  "rgb": {
    "r": 33,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 245.347,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30718,
    "c": 0.15928,
    "h": 275.5
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#21187D
secondary
#A7B23F
accent
#EB3DDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21187D

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

Preview Lab → · Contrast checker → · Palette generator →

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