#21139F#21139F

#21139F is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.3% C 0.203 H 272.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#21139F
RGBrgb(33, 19, 159)
HSLhsl(246, 79%, 35%)
HSVhsv(246, 88%, 62%)
CMYKcmyk(79.2%, 88.1%, 0%, 37.6%)
CIE-LABlab(21.18, 50.50, -70.32)
CIE-LCHlch(21.18, 86.57, 305.68°)
OKLaboklab(34.32% 0.0073 -0.2033)
OKLCHoklch(34.32% 0.203 272.1)
XYZxyz(7.1160, 3.2915, 33.0545)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21139F #919F13
analogous
#134B9F #21139F #67139F
triadic
#21139F #9F2113 #139F21
tetradic
#21139F #9F134B #919F13 #139F67
square
#21139F #9F134B #919F13 #139F67
split-complementary
#21139F #9F6713 #4B9F13
monochromatic
#0A0632 #160C68 #21139F #2C1AD6 #5444E9

Accessibility & contrast

On white

12.66
#21139F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21139F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21139F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21139F#FFFFFF#000000##FFFFFF
##21139F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A3
Deuteranopia (green-blind)
#002C9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21139f;
/* rgb */ color: rgb(33, 19, 159);
/* oklch */ color: oklch(34.3% 0.203 272.1);
Tailwind
colors: {
  custom: {
    50: '#7558bd',
    500: '#21139f',
    950: '#000000',
  },
}
SCSS
$custom: #21139f;
$custom-light: #7558bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21139f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 159
  },
  "hsl": {
    "h": 246,
    "s": 78.652,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.20346,
    "h": 272.1
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#21139F
secondary
#BCC945
accent
#F533E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #21139F

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

Preview Lab → · Contrast checker → · Palette generator →

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