#102158#102158

#102158 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.102 H 266.5°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#102158
RGBrgb(16, 33, 88)
HSLhsl(226, 69%, 20%)
HSVhsv(226, 82%, 35%)
CMYKcmyk(81.8%, 62.5%, 0%, 65.5%)
CIE-LABlab(14.97, 15.59, -35.21)
CIE-LCHlch(14.97, 38.51, 293.88°)
OKLaboklab(27.28% -0.0063 -0.1016)
OKLCHoklch(27.28% 0.102 266.5)
XYZxyz(2.5184, 1.9022, 9.4651)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#102158 #584710
analogous
#104558 #102158 #231058
triadic
#102158 #581021 #215810
tetradic
#102158 #581045 #584710 #105823
square
#102158 #581045 #584710 #105823
split-complementary
#102158 #582310 #455810
monochromatic
#050A1A #070E24 #102158 #19348C #2348C0

Accessibility & contrast

On white

15.21
#102158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#102158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #102158
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##102158#FFFFFF#000000##FFFFFF
##1021581.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #102158;
/* rgb */ color: rgb(16, 33, 88);
/* oklch */ color: oklch(27.3% 0.102 266.5);
Tailwind
colors: {
  custom: {
    50: '#5b5b88',
    500: '#102158',
    950: '#000000',
  },
}
SCSS
$custom: #102158;
$custom-light: #5b5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#102158",
  "rgb": {
    "r": 16,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 225.833,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27276,
    "c": 0.10183,
    "h": 266.5
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#102158
secondary
#917B32
accent
#C23CEC
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #102158

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

Preview Lab → · Contrast checker → · Palette generator →

#102158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva