#21137F#21137F

#21137F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.166 H 275.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#21137F
RGBrgb(33, 19, 127)
HSLhsl(248, 74%, 29%)
HSVhsv(248, 85%, 50%)
CMYKcmyk(74%, 85%, 0%, 50.2%)
CIE-LABlab(17.09, 40.76, -57.16)
CIE-LCHlch(17.09, 70.21, 305.50°)
OKLaboklab(30.35% 0.0168 -0.1652)
OKLCHoklch(30.35% 0.166 275.8)
XYZxyz(4.6896, 2.3209, 20.2754)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137F #717F13
analogous
#133B7F #21137F #57137F
triadic
#21137F #7F2113 #137F21
tetradic
#21137F #7F133B #717F13 #137F57
square
#21137F #7F133B #717F13 #137F57
split-complementary
#21137F #7F5713 #3B7F13
monochromatic
#07041B #130B4A #21137F #2F1BB4 #442DE0

Accessibility & contrast

On white

14.34
#21137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21137F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137F#FFFFFF#000000##FFFFFF
##21137F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21137f;
/* rgb */ color: rgb(33, 19, 127);
/* oklch */ color: oklch(30.3% 0.166 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#21137f',
    950: '#000000',
  },
}
SCSS
$custom: #21137f;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21137f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 247.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30349,
    "c": 0.16607,
    "h": 275.8
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#21137F
secondary
#A5B439
accent
#F137D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21137F

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

Preview Lab → · Contrast checker → · Palette generator →

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