#20138F#20138F

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

Color values

HEX#20138F
RGBrgb(32, 19, 143)
HSLhsl(246, 77%, 32%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(77.6%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.04, 45.66, -64.00)
CIE-LCHlch(19.04, 78.62, 305.50°)
OKLaboklab(32.25% 0.0106 -0.1851)
OKLCHoklch(32.25% 0.185 273.3)
XYZxyz(5.7848, 2.7554, 26.2082)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20138F #828F13
analogous
#13448F #20138F #5E138F
triadic
#20138F #8F2013 #138F20
tetradic
#20138F #8F1344 #828F13 #138F5E
square
#20138F #8F1344 #828F13 #138F5E
split-complementary
#20138F #8F5E13 #448F13
monochromatic
#080523 #140C59 #20138F #2C1AC5 #4A38E5

Accessibility & contrast

On white

13.54
#20138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20138F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20138F#FFFFFF#000000##FFFFFF
##20138F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20138f;
/* rgb */ color: rgb(32, 19, 143);
/* oklch */ color: oklch(32.3% 0.185 273.3);
Tailwind
colors: {
  custom: {
    50: '#7156b1',
    500: '#20138f',
    950: '#000000',
  },
}
SCSS
$custom: #20138f;
$custom-light: #7156b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20138f",
  "rgb": {
    "r": 32,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 246.29,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3225,
    "c": 0.18537,
    "h": 273.3
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#20138F
secondary
#B5C33B
accent
#F335DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #20138F

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

Preview Lab → · Contrast checker → · Palette generator →

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