#20148F#20148F

#20148F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.185 H 273.2°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#20148F
RGBrgb(32, 20, 143)
HSLhsl(246, 75%, 32%)
HSVhsv(246, 86%, 56%)
CMYKcmyk(77.6%, 86%, 0%, 43.9%)
CIE-LABlab(19.18, 45.23, -63.76)
CIE-LCHlch(19.18, 78.17, 305.35°)
OKLaboklab(32.35% 0.0103 -0.1844)
OKLCHoklch(32.35% 0.185 273.2)
XYZxyz(5.8021, 2.7899, 26.2140)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20148F #838F14
analogous
#14458F #20148F #5E148F
triadic
#20148F #8F2014 #148F20
tetradic
#20148F #8F1445 #838F14 #148F5E
square
#20148F #8F1445 #838F14 #148F5E
split-complementary
#20148F #8F5E14 #458F14
monochromatic
#080524 #140C59 #20148F #2C1CC5 #4A3AE3

Accessibility & contrast

On white

13.48
#20148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20148F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20148F#FFFFFF#000000##FFFFFF
##20148F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20148f;
/* rgb */ color: rgb(32, 20, 143);
/* oklch */ color: oklch(32.4% 0.185 273.2);
Tailwind
colors: {
  custom: {
    50: '#7157b1',
    500: '#20148f',
    950: '#000000',
  },
}
SCSS
$custom: #20148f;
$custom-light: #7157b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20148f",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 245.854,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3235,
    "c": 0.18468,
    "h": 273.2
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#20148F
secondary
#B6C33C
accent
#F236E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20148F

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

Preview Lab → · Contrast checker → · Palette generator →

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