#21277C#21277C

#21277C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.141 H 272.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#21277C
RGBrgb(33, 39, 124)
HSLhsl(236, 58%, 31%)
HSVhsv(236, 73%, 49%)
CMYKcmyk(73.4%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.94, 28.00, -48.90)
CIE-LCHlch(20.94, 56.35, 299.79°)
OKLaboklab(32.99% 0.0065 -0.1413)
OKLCHoklch(32.99% 0.141 272.6)
XYZxyz(4.9896, 3.2291, 19.4252)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277C #7C7621
analogous
#21547C #21277C #48217C
triadic
#21277C #7C2127 #277C21
tetradic
#21277C #7C2154 #7C7621 #217C48
square
#21277C #7C2154 #7C7621 #217C48
split-complementary
#21277C #7C4821 #547C21
monochromatic
#07091B #14184C #21277C #2E36AC #4952CF

Accessibility & contrast

On white

12.76
#21277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21277C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277C#FFFFFF#000000##FFFFFF
##21277C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21277c;
/* rgb */ color: rgb(33, 39, 124);
/* oklch */ color: oklch(33.0% 0.141 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b61a3',
    500: '#21277c',
    950: '#000000',
  },
}
SCSS
$custom: #21277c;
$custom-light: #6b61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21277c",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 236.044,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32985,
    "c": 0.14146,
    "h": 272.6
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21277C

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

Preview Lab → · Contrast checker → · Palette generator →

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