#20148B#20148B

#20148B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.180 H 273.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#20148B
RGBrgb(32, 20, 139)
HSLhsl(246, 75%, 31%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(77%, 85.6%, 0%, 45.5%)
CIE-LABlab(18.67, 43.99, -62.10)
CIE-LCHlch(18.67, 76.10, 305.31°)
OKLaboklab(31.86% 0.0115 -0.1796)
OKLCHoklch(31.86% 0.18 273.7)
XYZxyz(5.5045, 2.6709, 24.6465)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20148B #7F8B14
analogous
#14438B #20148B #5B148B
triadic
#20148B #8B2014 #148B20
tetradic
#20148B #8B1443 #7F8B14 #148B5B
square
#20148B #8B1443 #7F8B14 #148B5B
split-complementary
#20148B #8B5B14 #438B14
monochromatic
#070520 #140C55 #20148B #2C1CC1 #4837E2

Accessibility & contrast

On white

13.69
#20148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20148B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20148B#FFFFFF#000000##FFFFFF
##20148B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #20148b;
/* rgb */ color: rgb(32, 20, 139);
/* oklch */ color: oklch(31.9% 0.180 273.7);
Tailwind
colors: {
  custom: {
    50: '#7056ae',
    500: '#20148b',
    950: '#000000',
  },
}
SCSS
$custom: #20148b;
$custom-light: #7056ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20148b",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 246.05,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31855,
    "c": 0.17996,
    "h": 273.7
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#20148B
secondary
#B2BF3C
accent
#F136DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #20148B

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

Preview Lab → · Contrast checker → · Palette generator →

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