#18174B#18174B

#18174B is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.093 H 277.8°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#18174B
RGBrgb(24, 23, 75)
HSLhsl(241, 53%, 19%)
HSVhsv(241, 69%, 29%)
CMYKcmyk(68%, 69.3%, 0%, 70.6%)
CIE-LABlab(11.38, 18.93, -32.17)
CIE-LCHlch(11.38, 37.33, 300.48°)
OKLaboklab(24.38% 0.0126 -0.0926)
OKLCHoklch(24.38% 0.093 277.8)
XYZxyz(1.9527, 1.3148, 6.8061)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18174B #4A4B17
analogous
#17304B #18174B #32174B
triadic
#18174B #4B1817 #174B18
tetradic
#18174B #4B1730 #4A4B17 #174B32
square
#18174B #4B1730 #4A4B17 #174B32
split-complementary
#18174B #4B3217 #304B17
monochromatic
#070717 #09091C #18174B #27257A #3634A9

Accessibility & contrast

On white

16.63
#18174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#18174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18174B
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18174B#FFFFFF#000000##FFFFFF
##18174B1.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18174b;
/* rgb */ color: rgb(24, 23, 75);
/* oklch */ color: oklch(24.4% 0.093 277.8);
Tailwind
colors: {
  custom: {
    50: '#5c547e',
    500: '#18174b',
    950: '#000000',
  },
}
SCSS
$custom: #18174b;
$custom-light: #5c547e;
$custom-dark: #000000;
JSON
{
  "hex": "#18174b",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 241.154,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2438,
    "c": 0.09346,
    "h": 277.8
  },
  "luminance": 0.01315
}

Semantic roles & 50–950 ramp

primary
#18174B
secondary
#81823C
accent
#DC4BDA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18174B

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

Preview Lab → · Contrast checker → · Palette generator →

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