#180226#180226

#180226 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.075 H 309.5°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#180226
RGBrgb(24, 2, 38)
HSLhsl(277, 90%, 8%)
HSVhsv(277, 95%, 15%)
CMYKcmyk(36.8%, 94.7%, 0%, 85.1%)
CIE-LABlab(3.41, 15.95, -18.10)
CIE-LCHlch(3.41, 24.13, 311.38°)
OKLaboklab(16.56% 0.0478 -0.058)
OKLCHoklch(16.56% 0.075 309.5)
XYZxyz(0.7482, 0.3776, 1.8668)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180226 #102602
analogous
#060226 #180226 #260222
triadic
#180226 #261802 #022618
tetradic
#180226 #260602 #102602 #022226
square
#180226 #260602 #102602 #022226
split-complementary
#180226 #222602 #022606
monochromatic
#12021D #12021D #180226 #3D0560 #61089A

Accessibility & contrast

On white

19.52
#180226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#180226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180226
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180226#FFFFFF#000000##FFFFFF
##1802261.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180226;
/* rgb */ color: rgb(24, 2, 38);
/* oklch */ color: oklch(16.6% 0.075 309.5);
Tailwind
colors: {
  custom: {
    50: '#544760',
    500: '#180226',
    950: '#000000',
  },
}
SCSS
$custom: #180226;
$custom-light: #544760;
$custom-dark: #000000;
JSON
{
  "hex": "#180226",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 276.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16558,
    "c": 0.07518,
    "h": 309.5
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#180226
secondary
#396B18
accent
#FF297C
background
#F4F4F5
surface
#E8E6E9
border
#C4C2C5
text
#030005
muted
#787779

Preview Lab

Preview with #180226

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

Preview Lab → · Contrast checker → · Palette generator →

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