#18176D#18176D

#18176D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.142 H 272.9°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#18176D
RGBrgb(24, 23, 109)
HSLhsl(241, 65%, 26%)
HSVhsv(241, 79%, 43%)
CMYKcmyk(78%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.01, 31.76, -49.02)
CIE-LCHlch(15.01, 58.41, 302.94°)
OKLaboklab(28.09% 0.0072 -0.1419)
OKLCHoklch(28.09% 0.142 272.9)
XYZxyz(3.4425, 1.9108, 14.6524)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18176D #6C6D17
analogous
#17416D #18176D #43176D
triadic
#18176D #6D1817 #176D18
tetradic
#18176D #6D1741 #6C6D17 #176D43
square
#18176D #6D1741 #6C6D17 #176D43
split-complementary
#18176D #6D4317 #416D17
monochromatic
#060519 #0D0C3A #18176D #2322A0 #2E2CD2

Accessibility & contrast

On white

15.19
#18176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18176D
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18176D#FFFFFF#000000##FFFFFF
##18176D1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18176d;
/* rgb */ color: rgb(24, 23, 109);
/* oklch */ color: oklch(28.1% 0.142 272.9);
Tailwind
colors: {
  custom: {
    50: '#655598',
    500: '#18176d',
    950: '#000000',
  },
}
SCSS
$custom: #18176d;
$custom-light: #655598;
$custom-dark: #000000;
JSON
{
  "hex": "#18176d",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 240.698,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28092,
    "c": 0.14204,
    "h": 272.9
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18176D

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

Preview Lab → · Contrast checker → · Palette generator →

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