#18178C#18178C

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

Color values

HEX#18178C
RGBrgb(24, 23, 140)
HSLhsl(241, 72%, 32%)
HSVhsv(241, 84%, 55%)
CMYKcmyk(82.9%, 83.6%, 0%, 45.1%)
CIE-LABlab(18.80, 42.40, -62.54)
CIE-LCHlch(18.80, 75.56, 304.14°)
OKLaboklab(31.85% 0.0004 -0.181)
OKLCHoklch(31.85% 0.181 270.1)
XYZxyz(5.4151, 2.6998, 25.0416)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18178C #8B8C17
analogous
#17518C #18178C #53178C
triadic
#18178C #8C1817 #178C18
tetradic
#18178C #8C1751 #8B8C17 #178C53
square
#18178C #8C1751 #8B8C17 #178C53
split-complementary
#18178C #8C5317 #518C17
monochromatic
#060623 #0F0E57 #18178C #2120C1 #3F3EDF

Accessibility & contrast

On white

13.64
#18178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18178C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18178C#FFFFFF#000000##FFFFFF
##18178C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18178c;
/* rgb */ color: rgb(24, 23, 140);
/* oklch */ color: oklch(31.8% 0.181 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d57af',
    500: '#18178c',
    950: '#000000',
  },
}
SCSS
$custom: #18178c;
$custom-light: #6d57af;
$custom-dark: #000000;
JSON
{
  "hex": "#18178c",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 240.513,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.18105,
    "h": 270.1
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#18178C
secondary
#BEBF3F
accent
#EF39ED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #18178C

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

Preview Lab → · Contrast checker → · Palette generator →

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