#180C2E#180C2E

#180C2E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.4% C 0.065 H 296.0°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#180C2E
RGBrgb(24, 12, 46)
HSLhsl(261, 59%, 11%)
HSVhsv(261, 74%, 18%)
CMYKcmyk(47.8%, 73.9%, 0%, 82%)
CIE-LABlab(5.91, 15.16, -20.24)
CIE-LCHlch(5.91, 25.29, 306.84°)
OKLaboklab(19.39% 0.0286 -0.0586)
OKLCHoklch(19.39% 0.065 296)
XYZxyz(1.0012, 0.6544, 2.6578)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C2E #222E0C
analogous
#0C112E #180C2E #290C2E
triadic
#180C2E #2E180C #0C2E18
tetradic
#180C2E #2E0C11 #222E0C #0C2E29
square
#180C2E #2E0C11 #222E0C #0C2E29
split-complementary
#180C2E #2E290C #112E0C
monochromatic
#0D0618 #0D0618 #180C2E #31195F #4B258F

Accessibility & contrast

On white

18.57
#180C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C2E
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C2E#FFFFFF#000000##FFFFFF
##180C2E1.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#01132D
Tritanopia (blue-blind)
#13131B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180c2e;
/* rgb */ color: rgb(24, 12, 46);
/* oklch */ color: oklch(19.4% 0.065 296.0);
Tailwind
colors: {
  custom: {
    50: '#564c67',
    500: '#180c2e',
    950: '#000000',
  },
}
SCSS
$custom: #180c2e;
$custom-light: #564c67;
$custom-dark: #000000;
JSON
{
  "hex": "#180c2e",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 261.176,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.1939,
    "c": 0.06526,
    "h": 296
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#180C2E
secondary
#546A2C
accent
#E246AB
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180C2E

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

Preview Lab → · Contrast checker → · Palette generator →

#180C2E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva