#21279F#21279F

#21279F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.187 H 270.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#21279F
RGBrgb(33, 39, 159)
HSLhsl(237, 66%, 38%)
HSVhsv(237, 79%, 62%)
CMYKcmyk(79.2%, 75.5%, 0%, 37.6%)
CIE-LABlab(24.57, 40.64, -64.70)
CIE-LCHlch(24.57, 76.40, 302.13°)
OKLaboklab(36.68% 0.0017 -0.1874)
OKLCHoklch(36.68% 0.187 270.5)
XYZxyz(7.6086, 4.2767, 33.2187)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21279F #9F9921
analogous
#21669F #21279F #5A219F
triadic
#21279F #9F2127 #279F21
tetradic
#21279F #9F2166 #9F9921 #219F5A
square
#21279F #9F2166 #9F9921 #219F5A
split-complementary
#21279F #9F5A21 #669F21
monochromatic
#0C0E3A #161B6C #21279F #2C33D2 #5D63DD

Accessibility & contrast

On white

11.32
#21279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21279F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21279F#FFFFFF#000000##FFFFFF
##21279F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21279f;
/* rgb */ color: rgb(33, 39, 159);
/* oklch */ color: oklch(36.7% 0.187 270.5);
Tailwind
colors: {
  custom: {
    50: '#7462bd',
    500: '#21279f',
    950: '#000000',
  },
}
SCSS
$custom: #21279f;
$custom-light: #7462bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21279f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 237.143,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.18738,
    "h": 270.5
  },
  "luminance": 0.04278
}

Semantic roles & 50–950 ramp

primary
#21279F
secondary
#C2BD5A
accent
#E13FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21279F

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

Preview Lab → · Contrast checker → · Palette generator →

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