#20145F#20145F

#20145F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.7% C 0.125 H 281.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#20145F
RGBrgb(32, 20, 95)
HSLhsl(250, 65%, 23%)
HSVhsv(250, 79%, 37%)
CMYKcmyk(66.3%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.43, 29.57, -42.36)
CIE-LCHlch(13.43, 51.66, 304.91°)
OKLaboklab(26.67% 0.024 -0.1222)
OKLCHoklch(26.67% 0.125 281.1)
XYZxyz(2.9107, 1.6334, 10.9861)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145F #535F14
analogous
#142E5F #20145F #45145F
triadic
#20145F #5F2014 #145F20
tetradic
#20145F #5F142E #535F14 #145F45
square
#20145F #5F142E #535F14 #145F45
split-complementary
#20145F #5F4514 #2E5F14
monochromatic
#090519 #0F092C #20145F #311F92 #4229C4

Accessibility & contrast

On white

15.83
#20145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#20145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20145F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145F#FFFFFF#000000##FFFFFF
##20145F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20145f;
/* rgb */ color: rgb(32, 20, 95);
/* oklch */ color: oklch(26.7% 0.125 281.1);
Tailwind
colors: {
  custom: {
    50: '#65538d',
    500: '#20145f',
    950: '#000000',
  },
}
SCSS
$custom: #20145f;
$custom-light: #65538d;
$custom-dark: #000000;
JSON
{
  "hex": "#20145f",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 249.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26668,
    "c": 0.12454,
    "h": 281.1
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#20145F
secondary
#879738
accent
#E840CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20145F

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

Preview Lab → · Contrast checker → · Palette generator →

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