#20308C#20308C

#20308C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.153 H 269.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#20308C
RGBrgb(32, 48, 140)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(77.1%, 65.7%, 0%, 45.1%)
CIE-LABlab(24.68, 27.90, -52.82)
CIE-LCHlch(24.68, 59.73, 297.84°)
OKLaboklab(36.17% -0.0019 -0.1527)
OKLCHoklch(36.17% 0.153 269.3)
XYZxyz(6.3846, 4.3137, 25.3020)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20308C #8C7C20
analogous
#20668C #20308C #46208C
triadic
#20308C #8C2030 #308C20
tetradic
#20308C #8C2066 #8C7C20 #208C46
square
#20308C #8C2066 #8C7C20 #208C46
split-complementary
#20308C #8C4620 #668C20
monochromatic
#090E28 #151F5A #20308C #2B41BE #5064D7

Accessibility & contrast

On white

11.27
#20308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#20308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20308C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20308C#FFFFFF#000000##FFFFFF
##20308C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20308c;
/* rgb */ color: rgb(32, 48, 140);
/* oklch */ color: oklch(36.2% 0.153 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d68ae',
    500: '#20308c',
    950: '#000000',
  },
}
SCSS
$custom: #20308c;
$custom-light: #6d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20308c",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 231.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36173,
    "c": 0.15274,
    "h": 269.3
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#20308C
secondary
#BAAA4E
accent
#CE42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20308C

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

Preview Lab → · Contrast checker → · Palette generator →

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