#18052B#18052B

#18052B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.074 H 302.8°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#18052B
RGBrgb(24, 5, 43)
HSLhsl(270, 79%, 9%)
HSVhsv(270, 88%, 17%)
CMYKcmyk(44.2%, 88.4%, 0%, 83.1%)
CIE-LABlab(4.31, 16.93, -20.52)
CIE-LCHlch(4.31, 26.60, 309.52°)
OKLaboklab(17.75% 0.0401 -0.0623)
OKLCHoklch(17.75% 0.074 302.8)
XYZxyz(0.8669, 0.4771, 2.3315)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18052B #182B05
analogous
#05052B #18052B #2B052B
triadic
#18052B #2B1805 #052B18
tetradic
#18052B #2B0505 #182B05 #052B2B
square
#18052B #2B0505 #182B05 #052B2B
split-complementary
#18052B #2B2B05 #052B05
monochromatic
#0F031B #0F031B #18052B #370B62 #551299

Accessibility & contrast

On white

19.17
#18052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18052B
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18052B#FFFFFF#000000##FFFFFF
##18052B1.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#140E17
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #18052b;
/* rgb */ color: rgb(24, 5, 43);
/* oklch */ color: oklch(17.7% 0.074 302.8);
Tailwind
colors: {
  custom: {
    50: '#564864',
    500: '#18052b',
    950: '#000000',
  },
}
SCSS
$custom: #18052b;
$custom-light: #564864;
$custom-dark: #000000;
JSON
{
  "hex": "#18052b",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 270,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.17745,
    "c": 0.07412,
    "h": 302.8
  },
  "luminance": 0.00477
}

Semantic roles & 50–950 ramp

primary
#18052B
secondary
#466D1F
accent
#F63294
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18052B

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

Preview Lab → · Contrast checker → · Palette generator →

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