#20308D#20308D

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

Color values

HEX#20308D
RGBrgb(32, 48, 141)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(77.3%, 66%, 0%, 44.7%)
CIE-LABlab(24.78, 28.28, -53.29)
CIE-LCHlch(24.78, 60.32, 297.95°)
OKLaboklab(36.27% -0.0019 -0.1541)
OKLCHoklch(36.27% 0.154 269.3)
XYZxyz(6.4587, 4.3434, 25.6921)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20308D #8D7D20
analogous
#20678D #20308D #47208D
triadic
#20308D #8D2030 #308D20
tetradic
#20308D #8D2067 #8D7D20 #208D47
square
#20308D #8D2067 #8D7D20 #208D47
split-complementary
#20308D #8D4720 #678D20
monochromatic
#090E29 #151F5B #20308D #2B41BF #5064D7

Accessibility & contrast

On white

11.24
#20308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#20308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20308D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20308D#FFFFFF#000000##FFFFFF
##20308D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #20308d;
/* rgb */ color: rgb(32, 48, 141);
/* oklch */ color: oklch(36.3% 0.154 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e68af',
    500: '#20308d',
    950: '#000000',
  },
}
SCSS
$custom: #20308d;
$custom-light: #6e68af;
$custom-dark: #000000;
JSON
{
  "hex": "#20308d",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 231.193,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3627,
    "c": 0.15411,
    "h": 269.3
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#20308D
secondary
#BAAB4E
accent
#CE42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20308D

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

Preview Lab → · Contrast checker → · Palette generator →

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