#21399F#21399F

#21399F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.167 H 267.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#21399F
RGBrgb(33, 57, 159)
HSLhsl(229, 66%, 38%)
HSVhsv(229, 79%, 62%)
CMYKcmyk(79.2%, 64.2%, 0%, 37.6%)
CIE-LABlab(28.78, 29.23, -57.77)
CIE-LCHlch(28.78, 64.74, 296.84°)
OKLaboklab(39.74% -0.0072 -0.1671)
OKLCHoklch(39.74% 0.167 267.5)
XYZxyz(8.3462, 5.7518, 33.4645)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21399F #9F8721
analogous
#21789F #21399F #48219F
triadic
#21399F #9F2139 #399F21
tetradic
#21399F #9F2178 #9F8721 #219F48
square
#21399F #9F2178 #9F8721 #219F48
split-complementary
#21399F #9F4821 #789F21
monochromatic
#0C153A #16276C #21399F #2C4BD2 #5D75DD

Accessibility & contrast

On white

9.76
#21399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#21399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21399F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21399F#FFFFFF#000000##FFFFFF
##21399F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #21399f;
/* rgb */ color: rgb(33, 57, 159);
/* oklch */ color: oklch(39.7% 0.167 267.5);
Tailwind
colors: {
  custom: {
    50: '#726fbc',
    500: '#21399f',
    950: '#000000',
  },
}
SCSS
$custom: #21399f;
$custom-light: #726fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21399f",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 228.571,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39735,
    "c": 0.16727,
    "h": 267.5
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

primary
#21399F
secondary
#C2AE5A
accent
#C83FE9
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21399F

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

Preview Lab → · Contrast checker → · Palette generator →

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