#21279A#21279A

#21279A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.181 H 270.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#21279A
RGBrgb(33, 39, 154)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 60%)
CMYKcmyk(78.6%, 74.7%, 0%, 39.6%)
CIE-LABlab(24.02, 38.89, -62.54)
CIE-LCHlch(24.02, 73.65, 301.88°)
OKLaboklab(36.13% 0.0025 -0.1811)
OKLCHoklch(36.13% 0.181 270.8)
XYZxyz(7.1835, 4.1067, 30.9797)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21279A #9A9421
analogous
#21649A #21279A #58219A
triadic
#21279A #9A2127 #279A21
tetradic
#21279A #9A2164 #9A9421 #219A58
square
#21279A #9A2164 #9A9421 #219A58
split-complementary
#21279A #9A5821 #649A21
monochromatic
#0B0D35 #161A68 #21279A #2C34CC #5A60DC

Accessibility & contrast

On white

11.53
#21279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21279A
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21279A#FFFFFF#000000##FFFFFF
##21279A1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21279a;
/* rgb */ color: rgb(33, 39, 154);
/* oklch */ color: oklch(36.1% 0.181 270.8);
Tailwind
colors: {
  custom: {
    50: '#7262b9',
    500: '#21279a',
    950: '#000000',
  },
}
SCSS
$custom: #21279a;
$custom-light: #7262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21279a",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 237.025,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36133,
    "c": 0.18112,
    "h": 270.8
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#21279A
secondary
#C0BB57
accent
#DF40E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21279A

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

Preview Lab → · Contrast checker → · Palette generator →

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