#20306D#20306D

#20306D is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.108 H 268.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#20306D
RGBrgb(32, 48, 109)
HSLhsl(228, 55%, 28%)
HSVhsv(228, 71%, 43%)
CMYKcmyk(70.6%, 56%, 0%, 57.3%)
CIE-LABlab(22.03, 15.76, -37.52)
CIE-LCHlch(22.03, 40.69, 292.78°)
OKLaboklab(33.37% -0.0022 -0.1078)
OKLCHoklch(33.37% 0.108 268.8)
XYZxyz(4.4120, 3.5247, 14.9129)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20306D #6D5D20
analogous
#20576D #20306D #36206D
triadic
#20306D #6D2030 #306D20
tetradic
#20306D #6D2057 #6D5D20 #206D36
square
#20306D #6D2057 #6D5D20 #206D36
split-complementary
#20306D #6D3620 #576D20
monochromatic
#070A18 #121B3E #20306D #2E459C #405CC7

Accessibility & contrast

On white

12.32
#20306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#20306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20306D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20306D#FFFFFF#000000##FFFFFF
##20306D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07386F
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20306d;
/* rgb */ color: rgb(32, 48, 109);
/* oklch */ color: oklch(33.4% 0.108 268.8);
Tailwind
colors: {
  custom: {
    50: '#666797',
    500: '#20306d',
    950: '#000000',
  },
}
SCSS
$custom: #20306d;
$custom-light: #666797;
$custom-dark: #000000;
JSON
{
  "hex": "#20306d",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 227.532,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33374,
    "c": 0.10783,
    "h": 268.8
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#20306D
secondary
#A18E48
accent
#BF4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20306D

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

Preview Lab → · Contrast checker → · Palette generator →

#20306D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva