#21277B#21277B

#21277B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.140 H 272.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#21277B
RGBrgb(33, 39, 123)
HSLhsl(236, 58%, 31%)
HSVhsv(236, 73%, 48%)
CMYKcmyk(73.2%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.84, 27.62, -48.42)
CIE-LCHlch(20.84, 55.75, 299.70°)
OKLaboklab(32.89% 0.0066 -0.1399)
OKLCHoklch(32.89% 0.14 272.7)
XYZxyz(4.9267, 3.2040, 19.0938)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277B #7B7521
analogous
#21547B #21277B #48217B
triadic
#21277B #7B2127 #277B21
tetradic
#21277B #7B2154 #7B7521 #217B48
square
#21277B #7B2154 #7B7521 #217B48
split-complementary
#21277B #7B4821 #547B21
monochromatic
#07081A #14184B #21277B #2E36AB #4851CE

Accessibility & contrast

On white

12.80
#21277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21277B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277B#FFFFFF#000000##FFFFFF
##21277B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21277b;
/* rgb */ color: rgb(33, 39, 123);
/* oklch */ color: oklch(32.9% 0.140 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a2',
    500: '#21277b',
    950: '#000000',
  },
}
SCSS
$custom: #21277b;
$custom-light: #6a61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21277b",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 236,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32885,
    "c": 0.14006,
    "h": 272.7
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#21277B
secondary
#AEA74A
accent
#D747E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21277B

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

Preview Lab → · Contrast checker → · Palette generator →

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