#20307E#20307E

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

Color values

HEX#20307E
RGBrgb(32, 48, 126)
HSLhsl(230, 59%, 31%)
HSVhsv(230, 75%, 49%)
CMYKcmyk(74.6%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.43, 22.47, -46.10)
CIE-LCHlch(23.43, 51.29, 295.99°)
OKLaboklab(34.86% -0.0015 -0.133)
OKLCHoklch(34.86% 0.133 269.3)
XYZxyz(5.4172, 3.9268, 20.2071)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20307E #7E6E20
analogous
#205F7E #20307E #3F207E
triadic
#20307E #7E2030 #307E20
tetradic
#20307E #7E205F #7E6E20 #207E3F
square
#20307E #7E205F #7E6E20 #207E3F
split-complementary
#20307E #7E3F20 #5F7E20
monochromatic
#070B1C #141D4D #20307E #2C43AF #485FD0

Accessibility & contrast

On white

11.76
#20307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20307E
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20307E#FFFFFF#000000##FFFFFF
##20307E1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.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: #20307e;
/* rgb */ color: rgb(32, 48, 126);
/* oklch */ color: oklch(34.9% 0.133 269.3);
Tailwind
colors: {
  custom: {
    50: '#6a68a4',
    500: '#20307e',
    950: '#000000',
  },
}
SCSS
$custom: #20307e;
$custom-light: #6a68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#20307e",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 229.787,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34857,
    "c": 0.13305,
    "h": 269.3
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20307E

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

Preview Lab → · Contrast checker → · Palette generator →

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