#21307A#21307A

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

Color values

HEX#21307A
RGBrgb(33, 48, 122)
HSLhsl(230, 57%, 30%)
HSVhsv(230, 73%, 48%)
CMYKcmyk(73%, 60.7%, 0%, 52.2%)
CIE-LABlab(23.14, 21.05, -44.03)
CIE-LCHlch(23.14, 48.80, 295.55°)
OKLaboklab(34.55% -0.0005 -0.1269)
OKLCHoklch(34.55% 0.127 269.8)
XYZxyz(5.1958, 3.8419, 18.8763)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307A #7A6B21
analogous
#215C7A #21307A #3F217A
triadic
#21307A #7A2130 #307A21
tetradic
#21307A #7A215C #7A6B21 #217A3F
square
#21307A #7A215C #7A6B21 #217A3F
split-complementary
#21307A #7A3F21 #5C7A21
monochromatic
#070A1A #141D4A #21307A #2E43AA #485ECD

Accessibility & contrast

On white

11.88
#21307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21307A
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307A#FFFFFF#000000##FFFFFF
##21307A1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21307a;
/* rgb */ color: rgb(33, 48, 122);
/* oklch */ color: oklch(34.6% 0.127 269.8);
Tailwind
colors: {
  custom: {
    50: '#6968a1',
    500: '#21307a',
    950: '#000000',
  },
}
SCSS
$custom: #21307a;
$custom-light: #6968a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21307a",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 229.888,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34552,
    "c": 0.12694,
    "h": 269.8
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21307A

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

Preview Lab → · Contrast checker → · Palette generator →

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