#13157F#13157F

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

Color values

HEX#13157F
RGBrgb(19, 21, 127)
HSLhsl(239, 74%, 29%)
HSVhsv(239, 85%, 50%)
CMYKcmyk(85%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.54, 38.83, -58.10)
CIE-LCHlch(16.54, 69.88, 303.75°)
OKLaboklab(29.73% -0.0018 -0.1683)
OKLCHoklch(29.73% 0.168 269.4)
XYZxyz(4.3662, 2.2066, 20.2703)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#13157F #7F7D13
analogous
#134B7F #13157F #47137F
triadic
#13157F #7F1315 #157F13
tetradic
#13157F #7F134B #7F7D13 #137F47
square
#13157F #7F134B #7F7D13 #137F47
split-complementary
#13157F #7F4713 #4B7F13
monochromatic
#04041B #0B0C4A #13157F #1B1EB4 #2D30E0

Accessibility & contrast

On white

14.57
#13157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #13157F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##13157F#FFFFFF#000000##FFFFFF
##13157F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #13157f;
/* rgb */ color: rgb(19, 21, 127);
/* oklch */ color: oklch(29.7% 0.168 269.4);
Tailwind
colors: {
  custom: {
    50: '#6955a5',
    500: '#13157f',
    950: '#000000',
  },
}
SCSS
$custom: #13157f;
$custom-light: #6955a5;
$custom-dark: #000000;
JSON
{
  "hex": "#13157f",
  "rgb": {
    "r": 19,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 238.889,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29727,
    "c": 0.16827,
    "h": 269.4
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#13157F
secondary
#B4B239
accent
#ED37F1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #13157F

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

Preview Lab → · Contrast checker → · Palette generator →

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