#181578#181578

#181578 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.158 H 272.0°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#181578
RGBrgb(24, 21, 120)
HSLhsl(242, 70%, 28%)
HSVhsv(242, 83%, 47%)
CMYKcmyk(80%, 82.5%, 0%, 52.9%)
CIE-LABlab(15.93, 36.77, -54.62)
CIE-LCHlch(15.93, 65.84, 303.95°)
OKLaboklab(29.13% 0.0056 -0.1581)
OKLCHoklch(29.13% 0.158 272)
XYZxyz(4.0339, 2.0861, 17.9557)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181578 #757815
analogous
#154478 #181578 #491578
triadic
#181578 #781815 #157818
tetradic
#181578 #781544 #757815 #157849
square
#181578 #781544 #757815 #157849
split-complementary
#181578 #784915 #447815
monochromatic
#05051A #0E0C44 #181578 #221EAC #322DDA

Accessibility & contrast

On white

14.82
#181578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181578
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181578#FFFFFF#000000##FFFFFF
##1815781.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181578;
/* rgb */ color: rgb(24, 21, 120);
/* oklch */ color: oklch(29.1% 0.158 272.0);
Tailwind
colors: {
  custom: {
    50: '#6855a0',
    500: '#181578',
    950: '#000000',
  },
}
SCSS
$custom: #181578;
$custom-light: #6855a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181578",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 241.818,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29128,
    "c": 0.15818,
    "h": 272
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#181578
secondary
#AAAE3B
accent
#ED3BE8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181578

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

Preview Lab → · Contrast checker → · Palette generator →

#181578 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva