#21277D#21277D

#21277D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.143 H 272.6°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#21277D
RGBrgb(33, 39, 125)
HSLhsl(236, 58%, 31%)
HSVhsv(236, 74%, 49%)
CMYKcmyk(73.6%, 68.8%, 0%, 51%)
CIE-LABlab(21.04, 28.37, -49.38)
CIE-LCHlch(21.04, 56.95, 299.88°)
OKLaboklab(33.09% 0.0064 -0.1427)
OKLCHoklch(33.09% 0.143 272.6)
XYZxyz(5.0531, 3.2545, 19.7599)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277D #7D7721
analogous
#21557D #21277D #49217D
triadic
#21277D #7D2127 #277D21
tetradic
#21277D #7D2155 #7D7721 #217D49
square
#21277D #7D2155 #7D7721 #217D49
split-complementary
#21277D #7D4921 #557D21
monochromatic
#07091C #14184D #21277D #2E36AD #4952CF

Accessibility & contrast

On white

12.72
#21277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#21277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21277D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277D#FFFFFF#000000##FFFFFF
##21277D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21277d;
/* rgb */ color: rgb(33, 39, 125);
/* oklch */ color: oklch(33.1% 0.143 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b61a4',
    500: '#21277d',
    950: '#000000',
  },
}
SCSS
$custom: #21277d;
$custom-light: #6b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21277d",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 236.087,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33085,
    "c": 0.14284,
    "h": 272.6
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#21277D
secondary
#B0A94A
accent
#D746E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21277D

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

Preview Lab → · Contrast checker → · Palette generator →

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