#21309B#21309B

#21309B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.173 H 269.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#21309B
RGBrgb(33, 48, 155)
HSLhsl(233, 65%, 37%)
HSVhsv(233, 79%, 61%)
CMYKcmyk(78.7%, 69%, 0%, 39.2%)
CIE-LABlab(26.17, 33.65, -59.62)
CIE-LCHlch(26.17, 68.46, 299.44°)
OKLaboklab(37.71% -0.0019 -0.1726)
OKLCHoklch(37.71% 0.173 269.4)
XYZxyz(7.5985, 4.8029, 31.5306)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21309B #9B8C21
analogous
#216D9B #21309B #4F219B
triadic
#21309B #9B2130 #309B21
tetradic
#21309B #9B216D #9B8C21 #219B4F
square
#21309B #9B216D #9B8C21 #219B4F
split-complementary
#21309B #9B4F21 #6D9B21
monochromatic
#0C1136 #162069 #21309B #2C40CD #5A6ADC

Accessibility & contrast

On white

10.71
#21309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#21309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21309B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21309B#FFFFFF#000000##FFFFFF
##21309B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21309b;
/* rgb */ color: rgb(33, 48, 155);
/* oklch */ color: oklch(37.7% 0.173 269.4);
Tailwind
colors: {
  custom: {
    50: '#7268ba',
    500: '#21309b',
    950: '#000000',
  },
}
SCSS
$custom: #21309b;
$custom-light: #7268ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21309b",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 232.623,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37707,
    "c": 0.17261,
    "h": 269.4
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#21309B
secondary
#C0B358
accent
#D340E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21309B

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

Preview Lab → · Contrast checker → · Palette generator →

#21309B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva