#180937#180937

#180937 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.084 H 291.8°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#180937
RGBrgb(24, 9, 55)
HSLhsl(260, 72%, 13%)
HSVhsv(260, 84%, 22%)
CMYKcmyk(56.4%, 83.6%, 0%, 78.4%)
CIE-LABlab(6.01, 20.37, -26.72)
CIE-LCHlch(6.01, 33.60, 307.32°)
OKLaboklab(19.75% 0.0311 -0.0776)
OKLCHoklch(19.75% 0.084 291.8)
XYZxyz(1.1638, 0.6654, 3.6808)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180937 #283709
analogous
#091137 #180937 #2F0937
triadic
#180937 #371809 #093718
tetradic
#180937 #370911 #283709 #09372F
square
#180937 #370911 #283709 #09372F
split-complementary
#180937 #372F09 #113709
monochromatic
#0B041A #0B041A #180937 #2F126C #461AA0

Accessibility & contrast

On white

18.53
#180937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180937
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180937#FFFFFF#000000##FFFFFF
##1809371.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#0E151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180937;
/* rgb */ color: rgb(24, 9, 55);
/* oklch */ color: oklch(19.7% 0.084 291.8);
Tailwind
colors: {
  custom: {
    50: '#584a6e',
    500: '#180937',
    950: '#000000',
  },
}
SCSS
$custom: #180937;
$custom-light: #584a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#180937",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 259.565,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19748,
    "c": 0.08358,
    "h": 291.8
  },
  "luminance": 0.00665
}

Semantic roles & 50–950 ramp

primary
#180937
secondary
#5C7527
accent
#EF39B3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180937

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

Preview Lab → · Contrast checker → · Palette generator →

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