#10158D#10158D

#10158D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.186 H 267.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#10158D
RGBrgb(16, 21, 141)
HSLhsl(238, 80%, 31%)
HSVhsv(238, 89%, 55%)
CMYKcmyk(88.7%, 85.1%, 0%, 44.7%)
CIE-LABlab(18.23, 43.34, -64.12)
CIE-LCHlch(18.23, 77.40, 304.06°)
OKLaboklab(31.39% -0.0075 -0.1857)
OKLCHoklch(31.39% 0.186 267.7)
XYZxyz(5.2879, 2.5689, 25.4113)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#10158D #8D8810
analogous
#10538D #10158D #49108D
triadic
#10158D #8D1015 #158D10
tetradic
#10158D #8D1053 #8D8810 #108D49
square
#10158D #8D1053 #8D8810 #108D49
split-complementary
#10158D #8D4910 #538D10
monochromatic
#04051F #0A0D56 #10158D #161DC4 #3037E7

Accessibility & contrast

On white

13.87
#10158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#10158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #10158D
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##10158D#FFFFFF#000000##FFFFFF
##10158D1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00268B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #10158d;
/* rgb */ color: rgb(16, 21, 141);
/* oklch */ color: oklch(31.4% 0.186 267.7);
Tailwind
colors: {
  custom: {
    50: '#6c56b0',
    500: '#10158d',
    950: '#000000',
  },
}
SCSS
$custom: #10158d;
$custom-light: #6c56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#10158d",
  "rgb": {
    "r": 16,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 237.6,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31386,
    "c": 0.18586,
    "h": 267.7
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#10158D
secondary
#C2BC37
accent
#EE32F6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080311
muted
#7B7880

Preview Lab

Preview with #10158D

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

Preview Lab → · Contrast checker → · Palette generator →

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