#18052E#18052E

#18052E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.078 H 300.2°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#18052E
RGBrgb(24, 5, 46)
HSLhsl(268, 80%, 10%)
HSVhsv(268, 89%, 18%)
CMYKcmyk(47.8%, 89.1%, 0%, 82%)
CIE-LABlab(4.52, 18.28, -22.46)
CIE-LCHlch(4.52, 28.95, 309.15°)
OKLaboklab(18.06% 0.0393 -0.0675)
OKLCHoklch(18.06% 0.078 300.2)
XYZxyz(0.9240, 0.5000, 2.6321)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18052E #1B2E05
analogous
#05062E #18052E #2D052E
triadic
#18052E #2E1805 #052E18
tetradic
#18052E #2E0506 #1B2E05 #052E2D
square
#18052E #2E0506 #1B2E05 #052E2D
split-complementary
#18052E #2E2D05 #062E05
monochromatic
#0E031C #0E031C #18052E #350B65 #52119C

Accessibility & contrast

On white

19.09
#18052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#18052E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18052E
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18052E#FFFFFF#000000##FFFFFF
##18052E1.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#130F18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18052e;
/* rgb */ color: rgb(24, 5, 46);
/* oklch */ color: oklch(18.1% 0.078 300.2);
Tailwind
colors: {
  custom: {
    50: '#564867',
    500: '#18052e',
    950: '#000000',
  },
}
SCSS
$custom: #18052e;
$custom-light: #564867;
$custom-dark: #000000;
JSON
{
  "hex": "#18052e",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 267.805,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.18056,
    "c": 0.07809,
    "h": 300.2
  },
  "luminance": 0.005
}

Semantic roles & 50–950 ramp

primary
#18052E
secondary
#4A701F
accent
#F7319B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18052E

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

Preview Lab → · Contrast checker → · Palette generator →

#18052E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva