#180938#180938

#180938 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.085 H 291.3°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#180938
RGBrgb(24, 9, 56)
HSLhsl(259, 72%, 13%)
HSVhsv(259, 84%, 22%)
CMYKcmyk(57.1%, 83.9%, 0%, 78%)
CIE-LABlab(6.10, 20.79, -27.31)
CIE-LCHlch(6.10, 34.32, 307.28°)
OKLaboklab(19.86% 0.0308 -0.0792)
OKLCHoklch(19.86% 0.085 291.3)
XYZxyz(1.1880, 0.6750, 3.8083)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180938 #293809
analogous
#091138 #180938 #2F0938
triadic
#180938 #381809 #093818
tetradic
#180938 #380911 #293809 #09382F
square
#180938 #380911 #293809 #09382F
split-complementary
#180938 #382F09 #113809
monochromatic
#0B041A #0B041A #180938 #2F116D #451AA1

Accessibility & contrast

On white

18.50
#180938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180938
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180938#FFFFFF#000000##FFFFFF
##1809381.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001237
Tritanopia (blue-blind)
#0D151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180938;
/* rgb */ color: rgb(24, 9, 56);
/* oklch */ color: oklch(19.9% 0.085 291.3);
Tailwind
colors: {
  custom: {
    50: '#594a6f',
    500: '#180938',
    950: '#000000',
  },
}
SCSS
$custom: #180938;
$custom-light: #594a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#180938",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 259.149,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19855,
    "c": 0.08501,
    "h": 291.3
  },
  "luminance": 0.00675
}

Semantic roles & 50–950 ramp

primary
#180938
secondary
#5D7627
accent
#EF39B5
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180938

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

Preview Lab → · Contrast checker → · Palette generator →

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