#20307C#20307C

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

Color values

HEX#20307C
RGBrgb(32, 48, 124)
HSLhsl(230, 59%, 31%)
HSVhsv(230, 74%, 49%)
CMYKcmyk(74.2%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.26, 21.69, -45.12)
CIE-LCHlch(23.26, 50.06, 295.67°)
OKLaboklab(34.68% -0.0015 -0.1301)
OKLCHoklch(34.68% 0.13 269.3)
XYZxyz(5.2895, 3.8757, 19.5342)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20307C #7C6C20
analogous
#205E7C #20307C #3E207C
triadic
#20307C #7C2030 #307C20
tetradic
#20307C #7C205E #7C6C20 #207C3E
square
#20307C #7C205E #7C6C20 #207C3E
split-complementary
#20307C #7C3E20 #5E7C20
monochromatic
#070A1B #131D4B #20307C #2D43AD #475FCF

Accessibility & contrast

On white

11.83
#20307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20307C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20307C#FFFFFF#000000##FFFFFF
##20307C1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20307c;
/* rgb */ color: rgb(32, 48, 124);
/* oklch */ color: oklch(34.7% 0.130 269.3);
Tailwind
colors: {
  custom: {
    50: '#6968a3',
    500: '#20307c',
    950: '#000000',
  },
}
SCSS
$custom: #20307c;
$custom-light: #6968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20307c",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 229.565,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34676,
    "c": 0.13016,
    "h": 269.3
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#20307C
secondary
#AF9D49
accent
#C746E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #20307C

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

Preview Lab → · Contrast checker → · Palette generator →

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