#21307E#21307E

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

Color values

HEX#21307E
RGBrgb(33, 48, 126)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 74%, 49%)
CMYKcmyk(73.8%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.48, 22.61, -46.01)
CIE-LCHlch(23.48, 51.27, 296.17°)
OKLaboklab(34.91% -0.0005 -0.1327)
OKLCHoklch(34.91% 0.133 269.8)
XYZxyz(5.4488, 3.9430, 20.2085)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307E #7E6F21
analogous
#215E7E #21307E #40217E
triadic
#21307E #7E2130 #307E21
tetradic
#21307E #7E215E #7E6F21 #217E40
square
#21307E #7E215E #7E6F21 #217E40
split-complementary
#21307E #7E4021 #5E7E21
monochromatic
#080B1D #141E4E #21307E #2E42AE #4A5FD0

Accessibility & contrast

On white

11.74
#21307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#21307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21307E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307E#FFFFFF#000000##FFFFFF
##21307E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21307e;
/* rgb */ color: rgb(33, 48, 126);
/* oklch */ color: oklch(34.9% 0.133 269.8);
Tailwind
colors: {
  custom: {
    50: '#6a68a4',
    500: '#21307e',
    950: '#000000',
  },
}
SCSS
$custom: #21307e;
$custom-light: #6a68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21307e",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 230.323,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.13275,
    "h": 269.8
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#21307E
secondary
#B1A04A
accent
#C946E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21307E

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

Preview Lab → · Contrast checker → · Palette generator →

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