#21137D#21137D

#21137D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.164 H 276.1°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#21137D
RGBrgb(33, 19, 125)
HSLhsl(248, 74%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(73.6%, 84.8%, 0%, 51%)
CIE-LABlab(16.84, 40.13, -56.30)
CIE-LCHlch(16.84, 69.13, 305.48°)
OKLaboklab(30.11% 0.0174 -0.1627)
OKLCHoklch(30.11% 0.164 276.1)
XYZxyz(4.5605, 2.2693, 19.5957)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137D #6F7D13
analogous
#133A7D #21137D #56137D
triadic
#21137D #7D2113 #137D21
tetradic
#21137D #7D133A #6F7D13 #137D56
square
#21137D #7D133A #6F7D13 #137D56
split-complementary
#21137D #7D5613 #3A7D13
monochromatic
#07041B #130B48 #21137D #2F1BB2 #432CDF

Accessibility & contrast

On white

14.44
#21137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21137D
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137D#FFFFFF#000000##FFFFFF
##21137D1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21137d;
/* rgb */ color: rgb(33, 19, 125);
/* oklch */ color: oklch(30.1% 0.164 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d55a4',
    500: '#21137d',
    950: '#000000',
  },
}
SCSS
$custom: #21137d;
$custom-light: #6d55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21137d",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 247.925,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30106,
    "c": 0.16364,
    "h": 276.1
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#21137D
secondary
#A3B339
accent
#F038D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21137D

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

Preview Lab → · Contrast checker → · Palette generator →

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