#21307D#21307D

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

Color values

HEX#21307D
RGBrgb(33, 48, 125)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 74%, 49%)
CMYKcmyk(73.6%, 61.6%, 0%, 51%)
CIE-LABlab(23.40, 22.22, -45.52)
CIE-LCHlch(23.40, 50.65, 296.02°)
OKLaboklab(34.82% -0.0005 -0.1313)
OKLCHoklch(34.82% 0.131 269.8)
XYZxyz(5.3846, 3.9174, 19.8704)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307D #7D6E21
analogous
#215E7D #21307D #40217D
triadic
#21307D #7D2130 #307D21
tetradic
#21307D #7D215E #7D6E21 #217D40
square
#21307D #7D215E #7D6E21 #217D40
split-complementary
#21307D #7D4021 #5E7D21
monochromatic
#070B1C #141D4D #21307D #2E43AD #495FCF

Accessibility & contrast

On white

11.77
#21307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#21307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21307D
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307D#FFFFFF#000000##FFFFFF
##21307D1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21307d;
/* rgb */ color: rgb(33, 48, 125);
/* oklch */ color: oklch(34.8% 0.131 269.8);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#21307d',
    950: '#000000',
  },
}
SCSS
$custom: #21307d;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21307d",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 230.217,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34822,
    "c": 0.13131,
    "h": 269.8
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#21307D
secondary
#B09F4A
accent
#C846E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21307D

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

Preview Lab → · Contrast checker → · Palette generator →

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