#21279D#21279D

#21279D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.185 H 270.6°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#21279D
RGBrgb(33, 39, 157)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 62%)
CMYKcmyk(79%, 75.2%, 0%, 38.4%)
CIE-LABlab(24.35, 39.94, -63.84)
CIE-LCHlch(24.35, 75.30, 302.03°)
OKLaboklab(36.46% 0.0021 -0.1849)
OKLCHoklch(36.46% 0.185 270.6)
XYZxyz(7.4365, 4.2079, 32.3120)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21279D #9D9721
analogous
#21659D #21279D #59219D
triadic
#21279D #9D2127 #279D21
tetradic
#21279D #9D2165 #9D9721 #219D59
square
#21279D #9D2165 #9D9721 #219D59
split-complementary
#21279D #9D5921 #659D21
monochromatic
#0C0E38 #161A6A #21279D #2C34D0 #5C62DD

Accessibility & contrast

On white

11.40
#21279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21279D
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21279D#FFFFFF#000000##FFFFFF
##21279D1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21279d;
/* rgb */ color: rgb(33, 39, 157);
/* oklch */ color: oklch(36.5% 0.185 270.6);
Tailwind
colors: {
  custom: {
    50: '#7362bb',
    500: '#21279d',
    950: '#000000',
  },
}
SCSS
$custom: #21279d;
$custom-light: #7362bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21279d",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 237.097,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.18488,
    "h": 270.6
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21279D

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

Preview Lab → · Contrast checker → · Palette generator →

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