#180126#180126

#180126 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.3% C 0.078 H 310.0°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#180126
RGBrgb(24, 1, 38)
HSLhsl(277, 95%, 8%)
HSVhsv(277, 97%, 15%)
CMYKcmyk(36.8%, 97.4%, 0%, 85.1%)
CIE-LABlab(3.21, 16.35, -18.41)
CIE-LCHlch(3.21, 24.62, 311.60°)
OKLaboklab(16.31% 0.0502 -0.0597)
OKLCHoklch(16.31% 0.078 310)
XYZxyz(0.7373, 0.3559, 1.8632)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180126 #0F2601
analogous
#050126 #180126 #260121
triadic
#180126 #261801 #012618
tetradic
#180126 #260501 #0F2601 #012126
square
#180126 #260501 #0F2601 #012126
split-complementary
#180126 #212601 #012605
monochromatic
#13011E #13011E #180126 #3E0362 #63049D

Accessibility & contrast

On white

19.60
#180126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#180126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180126
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180126#FFFFFF#000000##FFFFFF
##1801261.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B27
Deuteranopia (green-blind)
#000C25
Tritanopia (blue-blind)
#160812
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #180126;
/* rgb */ color: rgb(24, 1, 38);
/* oklch */ color: oklch(16.3% 0.078 310.0);
Tailwind
colors: {
  custom: {
    50: '#544760',
    500: '#180126',
    950: '#000000',
  },
}
SCSS
$custom: #180126;
$custom-light: #544760;
$custom-dark: #000000;
JSON
{
  "hex": "#180126",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 277.297,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.16313,
    "c": 0.078,
    "h": 310
  },
  "luminance": 0.00356
}

Semantic roles & 50–950 ramp

primary
#180126
secondary
#376D16
accent
#FF297A
background
#F4F3F5
surface
#E8E5E9
border
#C4C1C5
text
#030005
muted
#787779

Preview Lab

Preview with #180126

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

Preview Lab → · Contrast checker → · Palette generator →

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