#21307B#21307B

#21307B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.128 H 269.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#21307B
RGBrgb(33, 48, 123)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 73%, 48%)
CMYKcmyk(73.2%, 61%, 0%, 51.8%)
CIE-LABlab(23.23, 21.44, -44.53)
CIE-LCHlch(23.23, 49.42, 295.71°)
OKLaboklab(34.64% -0.0005 -0.1284)
OKLCHoklch(34.64% 0.128 269.8)
XYZxyz(5.2581, 3.8668, 19.2043)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307B #7B6C21
analogous
#215D7B #21307B #3F217B
triadic
#21307B #7B2130 #307B21
tetradic
#21307B #7B215D #7B6C21 #217B3F
square
#21307B #7B215D #7B6C21 #217B3F
split-complementary
#21307B #7B3F21 #5D7B21
monochromatic
#070A1A #141D4B #21307B #2E43AB #485FCE

Accessibility & contrast

On white

11.84
#21307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#21307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21307B
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307B#FFFFFF#000000##FFFFFF
##21307B1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21307b;
/* rgb */ color: rgb(33, 48, 123);
/* oklch */ color: oklch(34.6% 0.128 269.8);
Tailwind
colors: {
  custom: {
    50: '#6968a2',
    500: '#21307b',
    950: '#000000',
  },
}
SCSS
$custom: #21307b;
$custom-light: #6968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21307b",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 230,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34642,
    "c": 0.1284,
    "h": 269.8
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#21307B
secondary
#AE9D4A
accent
#C747E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21307B

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

Preview Lab → · Contrast checker → · Palette generator →

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