#18174E#18174E

#18174E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.098 H 277.2°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#18174E
RGBrgb(24, 23, 78)
HSLhsl(241, 54%, 20%)
HSVhsv(241, 71%, 31%)
CMYKcmyk(69.2%, 70.5%, 0%, 69.4%)
CIE-LABlab(11.67, 20.10, -33.77)
CIE-LCHlch(11.67, 39.30, 300.76°)
OKLaboklab(24.68% 0.0124 -0.0973)
OKLCHoklch(24.68% 0.098 277.2)
XYZxyz(2.0578, 1.3569, 7.3597)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18174E #4D4E17
analogous
#17324E #18174E #34174E
triadic
#18174E #4E1817 #174E18
tetradic
#18174E #4E1732 #4D4E17 #174E34
square
#18174E #4E1732 #4D4E17 #174E34
split-complementary
#18174E #4E3417 #324E17
monochromatic
#070718 #09091F #18174E #27257D #3533AD

Accessibility & contrast

On white

16.52
#18174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#18174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18174E
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18174E#FFFFFF#000000##FFFFFF
##18174E1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18174e;
/* rgb */ color: rgb(24, 23, 78);
/* oklch */ color: oklch(24.7% 0.098 277.2);
Tailwind
colors: {
  custom: {
    50: '#5d5480',
    500: '#18174e',
    950: '#000000',
  },
}
SCSS
$custom: #18174e;
$custom-light: #5d5480;
$custom-dark: #000000;
JSON
{
  "hex": "#18174e",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 241.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24681,
    "c": 0.09808,
    "h": 277.2
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#18174E
secondary
#84853C
accent
#DE4ADB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18174E

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

Preview Lab → · Contrast checker → · Palette generator →

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