#13157E#13157E

#13157E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.167 H 269.4°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#13157E
RGBrgb(19, 21, 126)
HSLhsl(239, 74%, 28%)
HSVhsv(239, 85%, 49%)
CMYKcmyk(84.9%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.41, 38.49, -57.68)
CIE-LCHlch(16.41, 69.34, 303.72°)
OKLaboklab(29.6% -0.0016 -0.167)
OKLCHoklch(29.6% 0.167 269.4)
XYZxyz(4.3013, 2.1806, 19.9288)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#13157E #7E7C13
analogous
#134A7E #13157E #46137E
triadic
#13157E #7E1315 #157E13
tetradic
#13157E #7E134A #7E7C13 #137E46
square
#13157E #7E134A #7E7C13 #137E46
split-complementary
#13157E #7E4613 #4A7E13
monochromatic
#04041B #0B0C49 #13157E #1B1EB3 #2C30DF

Accessibility & contrast

On white

14.62
#13157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#13157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #13157E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##13157E#FFFFFF#000000##FFFFFF
##13157E1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #13157e;
/* rgb */ color: rgb(19, 21, 126);
/* oklch */ color: oklch(29.6% 0.167 269.4);
Tailwind
colors: {
  custom: {
    50: '#6855a5',
    500: '#13157e',
    950: '#000000',
  },
}
SCSS
$custom: #13157e;
$custom-light: #6855a5;
$custom-dark: #000000;
JSON
{
  "hex": "#13157e",
  "rgb": {
    "r": 19,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 238.879,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29601,
    "c": 0.16705,
    "h": 269.4
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#13157E
secondary
#B4B139
accent
#ED37F0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #13157E

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

Preview Lab → · Contrast checker → · Palette generator →

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