#21127D#21127D

#21127D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.164 H 276.2°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#21127D
RGBrgb(33, 18, 125)
HSLhsl(248, 75%, 28%)
HSVhsv(248, 86%, 49%)
CMYKcmyk(73.6%, 85.6%, 0%, 51%)
CIE-LABlab(16.68, 40.60, -56.56)
CIE-LCHlch(16.68, 69.63, 305.67°)
OKLaboklab(30% 0.0178 -0.1635)
OKLCHoklch(30% 0.164 276.2)
XYZxyz(4.5440, 2.2362, 19.5902)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21127D #6E7D12
analogous
#12387D #21127D #56127D
triadic
#21127D #7D2112 #127D21
tetradic
#21127D #7D1238 #6E7D12 #127D56
square
#21127D #7D1238 #6E7D12 #127D56
split-complementary
#21127D #7D5612 #387D12
monochromatic
#07041B #130A48 #21127D #2F1AB2 #4329E0

Accessibility & contrast

On white

14.51
#21127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21127D
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21127D#FFFFFF#000000##FFFFFF
##21127D1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21127d;
/* rgb */ color: rgb(33, 18, 125);
/* oklch */ color: oklch(30.0% 0.164 276.2);
Tailwind
colors: {
  custom: {
    50: '#6d54a4',
    500: '#21127d',
    950: '#000000',
  },
}
SCSS
$custom: #21127d;
$custom-light: #6d54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21127d",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 248.411,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29996,
    "c": 0.16443,
    "h": 276.2
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#21127D
secondary
#A2B338
accent
#F136D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21127D

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

Preview Lab → · Contrast checker → · Palette generator →

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