#20307B#20307B

#20307B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.6% C 0.129 H 269.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#20307B
RGBrgb(32, 48, 123)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 74%, 48%)
CMYKcmyk(74%, 61%, 0%, 51.8%)
CIE-LABlab(23.17, 21.29, -44.62)
CIE-LCHlch(23.17, 49.44, 295.51°)
OKLaboklab(34.59% -0.0016 -0.1287)
OKLCHoklch(34.59% 0.129 269.3)
XYZxyz(5.2265, 3.8505, 19.2028)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20307B #7B6B20
analogous
#205D7B #20307B #3E207B
triadic
#20307B #7B2030 #307B20
tetradic
#20307B #7B205D #7B6B20 #207B3E
square
#20307B #7B205D #7B6B20 #207B3E
split-complementary
#20307B #7B3E20 #5D7B20
monochromatic
#070A1A #131D4A #20307B #2D43AC #465ECF

Accessibility & contrast

On white

11.86
#20307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#20307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20307B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20307B#FFFFFF#000000##FFFFFF
##20307B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20307b;
/* rgb */ color: rgb(32, 48, 123);
/* oklch */ color: oklch(34.6% 0.129 269.3);
Tailwind
colors: {
  custom: {
    50: '#6968a2',
    500: '#20307b',
    950: '#000000',
  },
}
SCSS
$custom: #20307b;
$custom-light: #6968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20307b",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 229.451,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.12871,
    "h": 269.3
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#20307B
secondary
#AE9C49
accent
#C646E2
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20307B

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

Preview Lab → · Contrast checker → · Palette generator →

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