#20306F#20306F

#20306F is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.111 H 268.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#20306F
RGBrgb(32, 48, 111)
HSLhsl(228, 55%, 28%)
HSVhsv(228, 71%, 44%)
CMYKcmyk(71.2%, 56.8%, 0%, 56.5%)
CIE-LABlab(22.19, 16.55, -38.55)
CIE-LCHlch(22.19, 41.96, 293.24°)
OKLaboklab(33.54% -0.0021 -0.1109)
OKLCHoklch(33.54% 0.111 268.9)
XYZxyz(4.5209, 3.5682, 15.4863)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20306F #6F5F20
analogous
#20576F #20306F #37206F
triadic
#20306F #6F2030 #306F20
tetradic
#20306F #6F2057 #6F5F20 #206F37
square
#20306F #6F2057 #6F5F20 #206F37
split-complementary
#20306F #6F3720 #576F20
monochromatic
#070A18 #121B3F #20306F #2E459F #415DC8

Accessibility & contrast

On white

12.25
#20306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#20306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20306F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20306F#FFFFFF#000000##FFFFFF
##20306F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023971
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20306f;
/* rgb */ color: rgb(32, 48, 111);
/* oklch */ color: oklch(33.5% 0.111 268.9);
Tailwind
colors: {
  custom: {
    50: '#666799',
    500: '#20306f',
    950: '#000000',
  },
}
SCSS
$custom: #20306f;
$custom-light: #666799;
$custom-dark: #000000;
JSON
{
  "hex": "#20306f",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 227.848,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33541,
    "c": 0.11088,
    "h": 268.9
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#20306F
secondary
#A39048
accent
#C049DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #20306F

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

Preview Lab → · Contrast checker → · Palette generator →

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