#20306C#20306C

#20306C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.106 H 268.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#20306C
RGBrgb(32, 48, 108)
HSLhsl(227, 54%, 27%)
HSVhsv(227, 70%, 42%)
CMYKcmyk(70.4%, 55.6%, 0%, 57.6%)
CIE-LABlab(21.96, 15.36, -37.00)
CIE-LCHlch(21.96, 40.06, 292.55°)
OKLaboklab(33.29% -0.0023 -0.1063)
OKLCHoklch(33.29% 0.106 268.7)
XYZxyz(4.3585, 3.5033, 14.6310)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20306C #6C5C20
analogous
#20566C #20306C #36206C
triadic
#20306C #6C2030 #306C20
tetradic
#20306C #6C2056 #6C5C20 #206C36
square
#20306C #6C2056 #6C5C20 #206C36
split-complementary
#20306C #6C3620 #566C20
monochromatic
#070A18 #121B3D #20306C #2E459B #405CC6

Accessibility & contrast

On white

12.35
#20306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20306C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20306C#FFFFFF#000000##FFFFFF
##20306C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09386E
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20306c;
/* rgb */ color: rgb(32, 48, 108);
/* oklch */ color: oklch(33.3% 0.106 268.7);
Tailwind
colors: {
  custom: {
    50: '#656797',
    500: '#20306c',
    950: '#000000',
  },
}
SCSS
$custom: #20306c;
$custom-light: #656797;
$custom-dark: #000000;
JSON
{
  "hex": "#20306c",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 227.368,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33291,
    "c": 0.10631,
    "h": 268.7
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20306C

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

Preview Lab → · Contrast checker → · Palette generator →

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