#18176B#18176B

#18176B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.139 H 273.1°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#18176B
RGBrgb(24, 23, 107)
HSLhsl(241, 65%, 25%)
HSVhsv(241, 79%, 42%)
CMYKcmyk(77.6%, 78.5%, 0%, 58%)
CIE-LABlab(14.78, 31.03, -48.10)
CIE-LCHlch(14.78, 57.24, 302.83°)
OKLaboklab(27.86% 0.0077 -0.1392)
OKLCHoklch(27.86% 0.139 273.1)
XYZxyz(3.3360, 1.8682, 14.0918)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18176B #6A6B17
analogous
#17406B #18176B #42176B
triadic
#18176B #6B1817 #176B18
tetradic
#18176B #6B1740 #6A6B17 #176B42
square
#18176B #6B1740 #6A6B17 #176B42
split-complementary
#18176B #6B4217 #406B17
monochromatic
#060519 #0D0C39 #18176B #23229D #2F2DD0

Accessibility & contrast

On white

15.29
#18176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#18176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18176B
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18176B#FFFFFF#000000##FFFFFF
##18176B1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18176b;
/* rgb */ color: rgb(24, 23, 107);
/* oklch */ color: oklch(27.9% 0.139 273.1);
Tailwind
colors: {
  custom: {
    50: '#645596',
    500: '#18176b',
    950: '#000000',
  },
}
SCSS
$custom: #18176b;
$custom-light: #645596;
$custom-dark: #000000;
JSON
{
  "hex": "#18176b",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 240.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27859,
    "c": 0.13938,
    "h": 273.1
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#18176B
secondary
#A0A13D
accent
#E840E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18176B

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

Preview Lab → · Contrast checker → · Palette generator →

#18176B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva