#180843#180843

#180843 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.102 H 286.2°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#180843
RGBrgb(24, 8, 67)
HSLhsl(256, 79%, 15%)
HSVhsv(256, 88%, 26%)
CMYKcmyk(64.2%, 88.1%, 0%, 73.7%)
CIE-LABlab(6.98, 25.69, -33.77)
CIE-LCHlch(6.98, 42.43, 307.26°)
OKLaboklab(20.94% 0.0284 -0.0975)
OKLCHoklch(20.94% 0.102 286.2)
XYZxyz(1.4763, 0.7730, 5.3805)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180843 #334308
analogous
#081643 #180843 #360843
triadic
#180843 #431808 #084318
tetradic
#180843 #430816 #334308 #084336
square
#180843 #430816 #334308 #084336
split-complementary
#180843 #433608 #164308
monochromatic
#0A031B #0A031B #180843 #2C0F7A #3F15B0

Accessibility & contrast

On white

18.19
#180843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180843
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180843#FFFFFF#000000##FFFFFF
##1808431.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001745
Deuteranopia (green-blind)
#001442
Tritanopia (blue-blind)
#041925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180843;
/* rgb */ color: rgb(24, 8, 67);
/* oklch */ color: oklch(20.9% 0.102 286.2);
Tailwind
colors: {
  custom: {
    50: '#5c4a78',
    500: '#180843',
    950: '#000000',
  },
}
SCSS
$custom: #180843;
$custom-light: #5c4a78;
$custom-dark: #000000;
JSON
{
  "hex": "#180843",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 256.271,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20942,
    "c": 0.10152,
    "h": 286.2
  },
  "luminance": 0.00773
}

Semantic roles & 50–950 ramp

primary
#180843
secondary
#688125
accent
#F533C0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180843

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

Preview Lab → · Contrast checker → · Palette generator →

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