#21307F#21307F

#21307F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 269.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#21307F
RGBrgb(33, 48, 127)
HSLhsl(230, 59%, 31%)
HSVhsv(230, 74%, 50%)
CMYKcmyk(74%, 62.2%, 0%, 50.2%)
CIE-LABlab(23.57, 23.00, -46.50)
CIE-LCHlch(23.57, 51.88, 296.32°)
OKLaboklab(35% -0.0005 -0.1342)
OKLCHoklch(35% 0.134 269.8)
XYZxyz(5.5136, 3.9690, 20.5501)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21307F #7F7021
analogous
#215F7F #21307F #41217F
triadic
#21307F #7F2130 #307F21
tetradic
#21307F #7F215F #7F7021 #217F41
square
#21307F #7F215F #7F7021 #217F41
split-complementary
#21307F #7F4121 #5F7F21
monochromatic
#080B1E #141E4E #21307F #2E42B0 #4A60D0

Accessibility & contrast

On white

11.71
#21307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21307F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21307F#FFFFFF#000000##FFFFFF
##21307F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21307f;
/* rgb */ color: rgb(33, 48, 127);
/* oklch */ color: oklch(35.0% 0.134 269.8);
Tailwind
colors: {
  custom: {
    50: '#6a68a5',
    500: '#21307f',
    950: '#000000',
  },
}
SCSS
$custom: #21307f;
$custom-light: #6a68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21307f",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 230.426,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.13419,
    "h": 269.8
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21307F

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

Preview Lab → · Contrast checker → · Palette generator →

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