#21319F#21319F

#21319F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.177 H 269.1°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#21319F
RGBrgb(33, 49, 159)
HSLhsl(232, 66%, 38%)
HSVhsv(232, 79%, 62%)
CMYKcmyk(79.2%, 69.2%, 0%, 37.6%)
CIE-LABlab(26.80, 34.48, -61.02)
CIE-LCHlch(26.80, 70.08, 299.47°)
OKLaboklab(38.29% -0.0028 -0.1767)
OKLCHoklch(38.29% 0.177 269.1)
XYZxyz(7.9814, 5.0223, 33.3429)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21319F #9F8F21
analogous
#21709F #21319F #50219F
triadic
#21319F #9F2131 #319F21
tetradic
#21319F #9F2170 #9F8F21 #219F50
square
#21319F #9F2170 #9F8F21 #219F50
split-complementary
#21319F #9F5021 #709F21
monochromatic
#0C123A #16216C #21319F #2C41D2 #5D6DDD

Accessibility & contrast

On white

10.48
#21319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21319F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21319F#FFFFFF#000000##FFFFFF
##21319F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21319f;
/* rgb */ color: rgb(33, 49, 159);
/* oklch */ color: oklch(38.3% 0.177 269.1);
Tailwind
colors: {
  custom: {
    50: '#7369bc',
    500: '#21319f',
    950: '#000000',
  },
}
SCSS
$custom: #21319f;
$custom-light: #7369bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21319f",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 232.381,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38286,
    "c": 0.17669,
    "h": 269.1
  },
  "luminance": 0.05023
}

Semantic roles & 50–950 ramp

primary
#21319F
secondary
#C2B55A
accent
#D33FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21319F

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

Preview Lab → · Contrast checker → · Palette generator →

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