#180849#180849

#180849 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.7% C 0.109 H 283.8°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#180849
RGBrgb(24, 8, 73)
HSLhsl(255, 80%, 16%)
HSVhsv(255, 89%, 29%)
CMYKcmyk(67.1%, 89%, 0%, 71.4%)
CIE-LABlab(7.67, 27.86, -36.87)
CIE-LCHlch(7.67, 46.21, 307.08°)
OKLaboklab(21.66% 0.0261 -0.1063)
OKLCHoklch(21.66% 0.109 283.8)
XYZxyz(1.6657, 0.8488, 6.3781)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180849 #394908
analogous
#081849 #180849 #380849
triadic
#180849 #491808 #084918
tetradic
#180849 #490818 #394908 #084938
square
#180849 #490818 #394908 #084938
split-complementary
#180849 #493808 #184908
monochromatic
#09031C #09031C #180849 #2A0E80 #3C14B7

Accessibility & contrast

On white

17.95
#180849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180849
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180849#FFFFFF#000000##FFFFFF
##1808491.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194B
Deuteranopia (green-blind)
#001548
Tritanopia (blue-blind)
#001C29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180849;
/* rgb */ color: rgb(24, 8, 73);
/* oklch */ color: oklch(21.7% 0.109 283.8);
Tailwind
colors: {
  custom: {
    50: '#5d4a7d',
    500: '#180849',
    950: '#000000',
  },
}
SCSS
$custom: #180849;
$custom-light: #5d4a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#180849",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 73
  },
  "hsl": {
    "h": 254.769,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21663,
    "c": 0.10949,
    "h": 283.8
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#180849
secondary
#6F8726
accent
#F731C6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180849

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

Preview Lab → · Contrast checker → · Palette generator →

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