#20148A#20148A

#20148A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.179 H 273.8°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#20148A
RGBrgb(32, 20, 138)
HSLhsl(246, 75%, 31%)
HSVhsv(246, 86%, 54%)
CMYKcmyk(76.8%, 85.5%, 0%, 45.9%)
CIE-LABlab(18.55, 43.68, -61.69)
CIE-LCHlch(18.55, 75.58, 305.30°)
OKLaboklab(31.73% 0.0118 -0.1784)
OKLCHoklch(31.73% 0.179 273.8)
XYZxyz(5.4317, 2.6418, 24.2635)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20148A #7E8A14
analogous
#14438A #20148A #5B148A
triadic
#20148A #8A2014 #148A20
tetradic
#20148A #8A1443 #7E8A14 #148A5B
square
#20148A #8A1443 #7E8A14 #148A5B
split-complementary
#20148A #8A5B14 #438A14
monochromatic
#07051F #140C55 #20148A #2C1CBF #4836E2

Accessibility & contrast

On white

13.74
#20148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#20148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20148A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20148A#FFFFFF#000000##FFFFFF
##20148A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20148a;
/* rgb */ color: rgb(32, 20, 138);
/* oklch */ color: oklch(31.7% 0.179 273.8);
Tailwind
colors: {
  custom: {
    50: '#7056ad',
    500: '#20148a',
    950: '#000000',
  },
}
SCSS
$custom: #20148a;
$custom-light: #7056ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20148a",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 246.102,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31732,
    "c": 0.17878,
    "h": 273.8
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#20148A
secondary
#B1BE3C
accent
#F136DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #20148A

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

Preview Lab → · Contrast checker → · Palette generator →

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