#21307C#21307C

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

Color values

HEX#21307C
RGBrgb(33, 48, 124)
HSLhsl(230, 58%, 31%)
HSVhsv(230, 73%, 49%)
CMYKcmyk(73.4%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.31, 21.83, -45.03)
CIE-LCHlch(23.31, 50.04, 295.87°)
OKLaboklab(34.73% -0.0005 -0.1299)
OKLCHoklch(34.73% 0.13 269.8)
XYZxyz(5.3210, 3.8919, 19.5357)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307C #7C6D21
analogous
#215D7C #21307C #3F217C
triadic
#21307C #7C2130 #307C21
tetradic
#21307C #7C215D #7C6D21 #217C3F
square
#21307C #7C215D #7C6D21 #217C3F
split-complementary
#21307C #7C3F21 #5D7C21
monochromatic
#070B1B #141D4C #21307C #2E43AC #495FCF

Accessibility & contrast

On white

11.81
#21307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21307C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307C#FFFFFF#000000##FFFFFF
##21307C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21307c;
/* rgb */ color: rgb(33, 48, 124);
/* oklch */ color: oklch(34.7% 0.130 269.8);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#21307c',
    950: '#000000',
  },
}
SCSS
$custom: #21307c;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21307c",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 230.11,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.12986,
    "h": 269.8
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#21307C
secondary
#AF9E4A
accent
#C847E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21307C

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

Preview Lab → · Contrast checker → · Palette generator →

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