#20145E#20145E

#20145E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.123 H 281.4°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#20145E
RGBrgb(32, 20, 94)
HSLhsl(250, 65%, 22%)
HSVhsv(250, 79%, 37%)
CMYKcmyk(66%, 78.7%, 0%, 63.1%)
CIE-LABlab(13.32, 29.23, -41.88)
CIE-LCHlch(13.32, 51.07, 304.91°)
OKLaboklab(26.56% 0.0243 -0.1208)
OKLCHoklch(26.56% 0.123 281.4)
XYZxyz(2.8656, 1.6153, 10.7483)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145E #525E14
analogous
#142D5E #20145E #45145E
triadic
#20145E #5E2014 #145E20
tetradic
#20145E #5E142D #525E14 #145E45
square
#20145E #5E142D #525E14 #145E45
split-complementary
#20145E #5E4514 #2D5E14
monochromatic
#090519 #0F092C #20145E #311F90 #4229C3

Accessibility & contrast

On white

15.87
#20145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20145E
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145E#FFFFFF#000000##FFFFFF
##20145E1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20145e;
/* rgb */ color: rgb(32, 20, 94);
/* oklch */ color: oklch(26.6% 0.123 281.4);
Tailwind
colors: {
  custom: {
    50: '#65538c',
    500: '#20145e',
    950: '#000000',
  },
}
SCSS
$custom: #20145e;
$custom-light: #65538c;
$custom-dark: #000000;
JSON
{
  "hex": "#20145e",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 249.73,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26558,
    "c": 0.12318,
    "h": 281.4
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20145E

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

Preview Lab → · Contrast checker → · Palette generator →

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