#20148C#20148C

#20148C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.181 H 273.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#20148C
RGBrgb(32, 20, 140)
HSLhsl(246, 75%, 31%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(77.1%, 85.7%, 0%, 45.1%)
CIE-LABlab(18.80, 44.30, -62.52)
CIE-LCHlch(18.80, 76.62, 305.32°)
OKLaboklab(31.98% 0.0112 -0.1808)
OKLCHoklch(31.98% 0.181 273.5)
XYZxyz(5.5779, 2.7003, 25.0331)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20148C #808C14
analogous
#14448C #20148C #5C148C
triadic
#20148C #8C2014 #148C20
tetradic
#20148C #8C1444 #808C14 #148C5C
square
#20148C #8C1444 #808C14 #148C5C
split-complementary
#20148C #8C5C14 #448C14
monochromatic
#080521 #140C56 #20148C #2C1CC2 #4938E3

Accessibility & contrast

On white

13.63
#20148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#20148C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20148C
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20148C#FFFFFF#000000##FFFFFF
##20148C1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20148c;
/* rgb */ color: rgb(32, 20, 140);
/* oklch */ color: oklch(32.0% 0.181 273.5);
Tailwind
colors: {
  custom: {
    50: '#7056af',
    500: '#20148c',
    950: '#000000',
  },
}
SCSS
$custom: #20148c;
$custom-light: #7056af;
$custom-dark: #000000;
JSON
{
  "hex": "#20148c",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 246,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31979,
    "c": 0.18114,
    "h": 273.5
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#20148C
secondary
#B3C03C
accent
#F236DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20148C

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

Preview Lab → · Contrast checker → · Palette generator →

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