#18178D#18178D

#18178D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.182 H 270.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#18178D
RGBrgb(24, 23, 141)
HSLhsl(241, 72%, 32%)
HSVhsv(241, 84%, 55%)
CMYKcmyk(83%, 83.7%, 0%, 44.7%)
CIE-LABlab(18.93, 42.73, -62.95)
CIE-LCHlch(18.93, 76.08, 304.16°)
OKLaboklab(31.97% 0.0002 -0.1822)
OKLCHoklch(31.97% 0.182 270.1)
XYZxyz(5.4892, 2.7294, 25.4317)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18178D #8C8D17
analogous
#17518D #18178D #53178D
triadic
#18178D #8D1817 #178D18
tetradic
#18178D #8D1751 #8C8D17 #178D53
square
#18178D #8D1751 #8C8D17 #178D53
split-complementary
#18178D #8D5317 #518D17
monochromatic
#060624 #0F0E58 #18178D #2120C2 #403FE0

Accessibility & contrast

On white

13.58
#18178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18178D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18178D#FFFFFF#000000##FFFFFF
##18178D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18178d;
/* rgb */ color: rgb(24, 23, 141);
/* oklch */ color: oklch(32.0% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e58b0',
    500: '#18178d',
    950: '#000000',
  },
}
SCSS
$custom: #18178d;
$custom-light: #6e58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18178d",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 240.508,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31972,
    "c": 0.18225,
    "h": 270.1
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#18178D
secondary
#BFC040
accent
#EF39ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18178D

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

Preview Lab → · Contrast checker → · Palette generator →

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