#20145D#20145D

#20145D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.122 H 281.6°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#20145D
RGBrgb(32, 20, 93)
HSLhsl(250, 65%, 22%)
HSVhsv(250, 78%, 36%)
CMYKcmyk(65.6%, 78.5%, 0%, 63.5%)
CIE-LABlab(13.21, 28.88, -41.38)
CIE-LCHlch(13.21, 50.46, 304.91°)
OKLaboklab(26.45% 0.0245 -0.1193)
OKLCHoklch(26.45% 0.122 281.6)
XYZxyz(2.8210, 1.5975, 10.5135)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20145D #515D14
analogous
#142D5D #20145D #45145D
triadic
#20145D #5D2014 #145D20
tetradic
#20145D #5D142D #515D14 #145D45
square
#20145D #5D142D #515D14 #145D45
split-complementary
#20145D #5D4514 #2D5D14
monochromatic
#090519 #0F092B #20145D #311F8F #432AC2

Accessibility & contrast

On white

15.91
#20145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20145D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20145D#FFFFFF#000000##FFFFFF
##20145D1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20145d;
/* rgb */ color: rgb(32, 20, 93);
/* oklch */ color: oklch(26.4% 0.122 281.6);
Tailwind
colors: {
  custom: {
    50: '#64538c',
    500: '#20145d',
    950: '#000000',
  },
}
SCSS
$custom: #20145d;
$custom-light: #64538c;
$custom-dark: #000000;
JSON
{
  "hex": "#20145d",
  "rgb": {
    "r": 32,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 249.863,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26449,
    "c": 0.12182,
    "h": 281.6
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#20145D
secondary
#859538
accent
#E840CC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #20145D

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

Preview Lab → · Contrast checker → · Palette generator →

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