#21279C#21279C

#21279C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.184 H 270.7°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#21279C
RGBrgb(33, 39, 156)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 61%)
CMYKcmyk(78.8%, 75%, 0%, 38.8%)
CIE-LABlab(24.24, 39.59, -63.41)
CIE-LCHlch(24.24, 74.75, 301.98°)
OKLaboklab(36.35% 0.0022 -0.1836)
OKLCHoklch(36.35% 0.184 270.7)
XYZxyz(7.3514, 4.1739, 31.8642)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21279C #9C9621
analogous
#21659C #21279C #59219C
triadic
#21279C #9C2127 #279C21
tetradic
#21279C #9C2165 #9C9621 #219C59
square
#21279C #9C2165 #9C9621 #219C59
split-complementary
#21279C #9C5921 #659C21
monochromatic
#0C0E37 #161A69 #21279C #2C34CF #5B61DC

Accessibility & contrast

On white

11.44
#21279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#21279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21279C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21279C#FFFFFF#000000##FFFFFF
##21279C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21279c;
/* rgb */ color: rgb(33, 39, 156);
/* oklch */ color: oklch(36.4% 0.184 270.7);
Tailwind
colors: {
  custom: {
    50: '#7362ba',
    500: '#21279c',
    950: '#000000',
  },
}
SCSS
$custom: #21279c;
$custom-light: #7362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21279c",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 237.073,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36352,
    "c": 0.18363,
    "h": 270.7
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#21279C
secondary
#C1BC58
accent
#E040E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21279C

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

Preview Lab → · Contrast checker → · Palette generator →

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