#10157E#10157E

#10157E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.168 H 268.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#10157E
RGBrgb(16, 21, 126)
HSLhsl(237, 77%, 28%)
HSVhsv(237, 87%, 49%)
CMYKcmyk(87.3%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.27, 38.34, -57.92)
CIE-LCHlch(16.27, 69.46, 303.50°)
OKLaboklab(29.46% -0.0047 -0.1678)
OKLCHoklch(29.46% 0.168 268.4)
XYZxyz(4.2465, 2.1523, 19.9262)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#10157E #7E7910
analogous
#104C7E #10157E #42107E
triadic
#10157E #7E1015 #157E10
tetradic
#10157E #7E104C #7E7910 #107E42
square
#10157E #7E104C #7E7910 #107E42
split-complementary
#10157E #7E4210 #4C7E10
monochromatic
#03051B #090C48 #10157E #171EB4 #252EE3

Accessibility & contrast

On white

14.68
#10157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#10157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #10157E
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##10157E#FFFFFF#000000##FFFFFF
##10157E1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #10157e;
/* rgb */ color: rgb(16, 21, 126);
/* oklch */ color: oklch(29.5% 0.168 268.4);
Tailwind
colors: {
  custom: {
    50: '#6855a5',
    500: '#10157e',
    950: '#000000',
  },
}
SCSS
$custom: #10157e;
$custom-light: #6855a5;
$custom-dark: #000000;
JSON
{
  "hex": "#10157e",
  "rgb": {
    "r": 16,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 237.273,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29464,
    "c": 0.16784,
    "h": 268.4
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#10157E
secondary
#B4AF36
accent
#EB34F4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #10157E

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

Preview Lab → · Contrast checker → · Palette generator →

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