#180631#180631

#180631 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.080 H 297.3°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#180631
RGBrgb(24, 6, 49)
HSLhsl(265, 78%, 11%)
HSVhsv(265, 88%, 19%)
CMYKcmyk(51%, 87.8%, 0%, 80.8%)
CIE-LABlab(4.93, 19.18, -24.03)
CIE-LCHlch(4.93, 30.75, 308.60°)
OKLaboklab(18.57% 0.0368 -0.0712)
OKLCHoklch(18.57% 0.08 297.3)
XYZxyz(0.9960, 0.5462, 2.9581)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180631 #1F3106
analogous
#060931 #180631 #2D0631
triadic
#180631 #311806 #063118
tetradic
#180631 #310609 #1F3106 #06312D
square
#180631 #310609 #1F3106 #06312D
split-complementary
#180631 #312D06 #093106
monochromatic
#0D031B #0D031B #180631 #330D68 #4D139E

Accessibility & contrast

On white

18.93
#180631 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#180631 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180631
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180631#FFFFFF#000000##FFFFFF
##1806311.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#12111A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #180631;
/* rgb */ color: rgb(24, 6, 49);
/* oklch */ color: oklch(18.6% 0.080 297.3);
Tailwind
colors: {
  custom: {
    50: '#574869',
    500: '#180631',
    950: '#000000',
  },
}
SCSS
$custom: #180631;
$custom-light: #574869;
$custom-dark: #000000;
JSON
{
  "hex": "#180631",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 49
  },
  "hsl": {
    "h": 265.116,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18571,
    "c": 0.08018,
    "h": 297.3
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#180631
secondary
#507221
accent
#F533A4
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #180631

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

Preview Lab → · Contrast checker → · Palette generator →

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