#21277F#21277F

#21277F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.146 H 272.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#21277F
RGBrgb(33, 39, 127)
HSLhsl(236, 59%, 31%)
HSVhsv(236, 74%, 50%)
CMYKcmyk(74%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.23, 29.12, -50.33)
CIE-LCHlch(21.23, 58.14, 300.05°)
OKLaboklab(33.29% 0.0062 -0.1455)
OKLCHoklch(33.29% 0.146 272.4)
XYZxyz(5.1822, 3.3062, 20.4396)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277F #7F7921
analogous
#21567F #21277F #4A217F
triadic
#21277F #7F2127 #277F21
tetradic
#21277F #7F2156 #7F7921 #217F4A
square
#21277F #7F2156 #7F7921 #217F4A
split-complementary
#21277F #7F4A21 #567F21
monochromatic
#08091E #14184E #21277F #2E36B0 #4A53D0

Accessibility & contrast

On white

12.64
#21277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21277F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277F#FFFFFF#000000##FFFFFF
##21277F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21277f;
/* rgb */ color: rgb(33, 39, 127);
/* oklch */ color: oklch(33.3% 0.146 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b61a5',
    500: '#21277f',
    950: '#000000',
  },
}
SCSS
$custom: #21277f;
$custom-light: #6b61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21277f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 236.17,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.1456,
    "h": 272.4
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21277F

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

Preview Lab → · Contrast checker → · Palette generator →

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