#20308A#20308A

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

Color values

HEX#20308A
RGBrgb(32, 48, 138)
HSLhsl(231, 62%, 33%)
HSVhsv(231, 77%, 54%)
CMYKcmyk(76.8%, 65.2%, 0%, 45.9%)
CIE-LABlab(24.50, 27.13, -51.88)
CIE-LCHlch(24.50, 58.54, 297.61°)
OKLaboklab(35.98% -0.0018 -0.15)
OKLCHoklch(35.98% 0.15 269.3)
XYZxyz(6.2385, 4.2553, 24.5324)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20308A #8A7A20
analogous
#20658A #20308A #45208A
triadic
#20308A #8A2030 #308A20
tetradic
#20308A #8A2065 #8A7A20 #208A45
square
#20308A #8A2065 #8A7A20 #208A45
split-complementary
#20308A #8A4520 #658A20
monochromatic
#090D27 #141F58 #20308A #2C41BC #4E63D6

Accessibility & contrast

On white

11.34
#20308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#20308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20308A
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20308A#FFFFFF#000000##FFFFFF
##20308A1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20308a;
/* rgb */ color: rgb(32, 48, 138);
/* oklch */ color: oklch(36.0% 0.150 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d68ad',
    500: '#20308a',
    950: '#000000',
  },
}
SCSS
$custom: #20308a;
$custom-light: #6d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20308a",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 230.943,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3598,
    "c": 0.14999,
    "h": 269.3
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#20308A
secondary
#B9A94D
accent
#CD42E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20308A

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

Preview Lab → · Contrast checker → · Palette generator →

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