#20307F#20307F

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

Color values

HEX#20307F
RGBrgb(32, 48, 127)
HSLhsl(230, 60%, 31%)
HSVhsv(230, 75%, 50%)
CMYKcmyk(74.8%, 62.2%, 0%, 50.2%)
CIE-LABlab(23.51, 22.86, -46.59)
CIE-LCHlch(23.51, 51.90, 296.14°)
OKLaboklab(34.95% -0.0015 -0.1345)
OKLCHoklch(34.95% 0.134 269.3)
XYZxyz(5.4821, 3.9527, 20.5486)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20307F #7F6F20
analogous
#205F7F #20307F #3F207F
triadic
#20307F #7F2030 #307F20
tetradic
#20307F #7F205F #7F6F20 #207F3F
square
#20307F #7F205F #7F6F20 #207F3F
split-complementary
#20307F #7F3F20 #5F7F20
monochromatic
#070B1D #141E4E #20307F #2C42B0 #485FD1

Accessibility & contrast

On white

11.73
#20307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20307F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20307F#FFFFFF#000000##FFFFFF
##20307F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.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: #20307f;
/* rgb */ color: rgb(32, 48, 127);
/* oklch */ color: oklch(34.9% 0.134 269.3);
Tailwind
colors: {
  custom: {
    50: '#6a68a5',
    500: '#20307f',
    950: '#000000',
  },
}
SCSS
$custom: #20307f;
$custom-light: #6a68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20307f",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 229.895,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34949,
    "c": 0.13449,
    "h": 269.3
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#20307F
secondary
#B2A049
accent
#C845E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20307F

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

Preview Lab → · Contrast checker → · Palette generator →

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