#18176F#18176F

#18176F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.145 H 272.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#18176F
RGBrgb(24, 23, 111)
HSLhsl(241, 66%, 26%)
HSVhsv(241, 79%, 44%)
CMYKcmyk(78.4%, 79.3%, 0%, 56.5%)
CIE-LABlab(15.25, 32.48, -49.94)
CIE-LCHlch(15.25, 59.57, 303.04°)
OKLaboklab(28.33% 0.0068 -0.1445)
OKLCHoklch(28.33% 0.145 272.7)
XYZxyz(3.5514, 1.9543, 15.2259)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18176F #6E6F17
analogous
#17426F #18176F #44176F
triadic
#18176F #6F1817 #176F18
tetradic
#18176F #6F1742 #6E6F17 #176F44
square
#18176F #6F1742 #6E6F17 #176F44
split-complementary
#18176F #6F4417 #426F17
monochromatic
#050519 #0D0C3C #18176F #2322A2 #2F2DD3

Accessibility & contrast

On white

15.10
#18176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#18176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18176F
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18176F#FFFFFF#000000##FFFFFF
##18176F1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18176f;
/* rgb */ color: rgb(24, 23, 111);
/* oklch */ color: oklch(28.3% 0.145 272.7);
Tailwind
colors: {
  custom: {
    50: '#655599',
    500: '#18176f',
    950: '#000000',
  },
}
SCSS
$custom: #18176f;
$custom-light: #655599;
$custom-dark: #000000;
JSON
{
  "hex": "#18176f",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 240.682,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28327,
    "c": 0.14468,
    "h": 272.7
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#18176F
secondary
#A4A53D
accent
#E93FE7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18176F

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

Preview Lab → · Contrast checker → · Palette generator →

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