#21279B#21279B

#21279B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.182 H 270.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#21279B
RGBrgb(33, 39, 155)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 61%)
CMYKcmyk(78.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.13, 39.24, -62.98)
CIE-LCHlch(24.13, 74.20, 301.93°)
OKLaboklab(36.24% 0.0024 -0.1824)
OKLCHoklch(36.24% 0.182 270.7)
XYZxyz(7.2671, 4.1401, 31.4201)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21279B #9B9521
analogous
#21649B #21279B #58219B
triadic
#21279B #9B2127 #279B21
tetradic
#21279B #9B2164 #9B9521 #219B58
square
#21279B #9B2164 #9B9521 #219B58
split-complementary
#21279B #9B5821 #649B21
monochromatic
#0C0E36 #161A69 #21279B #2C34CD #5A61DC

Accessibility & contrast

On white

11.49
#21279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#21279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21279B
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21279B#FFFFFF#000000##FFFFFF
##21279B1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21279b;
/* rgb */ color: rgb(33, 39, 155);
/* oklch */ color: oklch(36.2% 0.182 270.7);
Tailwind
colors: {
  custom: {
    50: '#7362ba',
    500: '#21279b',
    950: '#000000',
  },
}
SCSS
$custom: #21279b;
$custom-light: #7362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21279b",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 237.049,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36242,
    "c": 0.18238,
    "h": 270.7
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#21279B
secondary
#C0BB58
accent
#E040E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21279B

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

Preview Lab → · Contrast checker → · Palette generator →

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