#21277E#21277E

#21277E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.144 H 272.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#21277E
RGBrgb(33, 39, 126)
HSLhsl(236, 58%, 31%)
HSVhsv(236, 74%, 49%)
CMYKcmyk(73.8%, 69%, 0%, 50.6%)
CIE-LABlab(21.13, 28.75, -49.85)
CIE-LCHlch(21.13, 57.55, 299.97°)
OKLaboklab(33.18% 0.0063 -0.1441)
OKLCHoklch(33.18% 0.144 272.5)
XYZxyz(5.1173, 3.2802, 20.0981)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277E #7E7821
analogous
#21557E #21277E #49217E
triadic
#21277E #7E2127 #277E21
tetradic
#21277E #7E2155 #7E7821 #217E49
square
#21277E #7E2155 #7E7821 #217E49
split-complementary
#21277E #7E4921 #557E21
monochromatic
#08091D #14184E #21277E #2E36AE #4A52D0

Accessibility & contrast

On white

12.68
#21277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21277E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277E#FFFFFF#000000##FFFFFF
##21277E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21277e;
/* rgb */ color: rgb(33, 39, 126);
/* oklch */ color: oklch(33.2% 0.144 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b61a4',
    500: '#21277e',
    950: '#000000',
  },
}
SCSS
$custom: #21277e;
$custom-light: #6b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21277e",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 236.129,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33185,
    "c": 0.14423,
    "h": 272.5
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#21277E
secondary
#B1AA4A
accent
#D846E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21277E

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

Preview Lab → · Contrast checker → · Palette generator →

#21277E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva