#180742#180742

#180742 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.101 H 287.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#180742
RGBrgb(24, 7, 66)
HSLhsl(257, 81%, 14%)
HSVhsv(257, 89%, 26%)
CMYKcmyk(63.6%, 89.4%, 0%, 74.1%)
CIE-LABlab(6.68, 25.84, -33.55)
CIE-LCHlch(6.68, 42.35, 307.60°)
OKLaboklab(20.67% 0.0296 -0.097)
OKLCHoklch(20.67% 0.101 287)
XYZxyz(1.4357, 0.7394, 5.2203)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180742 #314207
analogous
#071442 #180742 #360742
triadic
#180742 #421807 #074218
tetradic
#180742 #420714 #314207 #074236
square
#180742 #420714 #314207 #074236
split-complementary
#180742 #423607 #144207
monochromatic
#0A031C #0A031C #180742 #2C0D79 #4013B1

Accessibility & contrast

On white

18.30
#180742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180742
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180742#FFFFFF#000000##FFFFFF
##1807421.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#051825
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180742;
/* rgb */ color: rgb(24, 7, 66);
/* oklch */ color: oklch(20.7% 0.101 287.0);
Tailwind
colors: {
  custom: {
    50: '#5b4977',
    500: '#180742',
    950: '#000000',
  },
}
SCSS
$custom: #180742;
$custom-light: #5b4977;
$custom-dark: #000000;
JSON
{
  "hex": "#180742",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 257.288,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20672,
    "c": 0.10144,
    "h": 287
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#180742
secondary
#668124
accent
#F731BE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180742

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

Preview Lab → · Contrast checker → · Palette generator →

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