#20308B#20308B

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

Color values

HEX#20308B
RGBrgb(32, 48, 139)
HSLhsl(231, 63%, 34%)
HSVhsv(231, 77%, 55%)
CMYKcmyk(77%, 65.5%, 0%, 45.5%)
CIE-LABlab(24.59, 27.51, -52.35)
CIE-LCHlch(24.59, 59.14, 297.73°)
OKLaboklab(36.08% -0.0018 -0.1514)
OKLCHoklch(36.08% 0.151 269.3)
XYZxyz(6.3112, 4.2844, 24.9154)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20308B #8B7B20
analogous
#20658B #20308B #45208B
triadic
#20308B #8B2030 #308B20
tetradic
#20308B #8B2065 #8B7B20 #208B45
square
#20308B #8B2065 #8B7B20 #208B45
split-complementary
#20308B #8B4520 #658B20
monochromatic
#090E28 #151F59 #20308B #2B41BD #4F63D6

Accessibility & contrast

On white

11.31
#20308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20308B
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20308B#FFFFFF#000000##FFFFFF
##20308B1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20308b;
/* rgb */ color: rgb(32, 48, 139);
/* oklch */ color: oklch(36.1% 0.151 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d68ae',
    500: '#20308b',
    950: '#000000',
  },
}
SCSS
$custom: #20308b;
$custom-light: #6d68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20308b",
  "rgb": {
    "r": 32,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 231.028,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36076,
    "c": 0.15137,
    "h": 269.3
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#20308B
secondary
#BAA94D
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20308B

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

Preview Lab → · Contrast checker → · Palette generator →

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