#18052F#18052F

#18052F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.079 H 299.4°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#18052F
RGBrgb(24, 5, 47)
HSLhsl(267, 81%, 10%)
HSVhsv(267, 89%, 18%)
CMYKcmyk(48.9%, 89.4%, 0%, 81.6%)
CIE-LABlab(4.59, 18.73, -23.09)
CIE-LCHlch(4.59, 29.73, 309.05°)
OKLaboklab(18.16% 0.039 -0.0692)
OKLCHoklch(18.16% 0.079 299.4)
XYZxyz(0.9439, 0.5080, 2.7371)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18052F #1C2F05
analogous
#05072F #18052F #2D052F
triadic
#18052F #2F1805 #052F18
tetradic
#18052F #2F0507 #1C2F05 #052F2D
square
#18052F #2F0507 #1C2F05 #052F2D
split-complementary
#18052F #2F2D05 #072F05
monochromatic
#0E031C #0E031C #18052F #340B66 #50119E

Accessibility & contrast

On white

19.06
#18052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18052F
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18052F#FFFFFF#000000##FFFFFF
##18052F1.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#000F2E
Tritanopia (blue-blind)
#120F19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18052f;
/* rgb */ color: rgb(24, 5, 47);
/* oklch */ color: oklch(18.2% 0.079 299.4);
Tailwind
colors: {
  custom: {
    50: '#574868',
    500: '#18052f',
    950: '#000000',
  },
}
SCSS
$custom: #18052f;
$custom-light: #574868;
$custom-dark: #000000;
JSON
{
  "hex": "#18052f",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 267.143,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18162,
    "c": 0.07941,
    "h": 299.4
  },
  "luminance": 0.00508
}

Semantic roles & 50–950 ramp

primary
#18052F
secondary
#4C711F
accent
#F7319D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18052F

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

Preview Lab → · Contrast checker → · Palette generator →

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