#18052C#18052C

#18052C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.075 H 301.9°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#18052C
RGBrgb(24, 5, 44)
HSLhsl(269, 80%, 10%)
HSVhsv(269, 89%, 17%)
CMYKcmyk(45.5%, 88.6%, 0%, 82.7%)
CIE-LABlab(4.38, 17.38, -21.17)
CIE-LCHlch(4.38, 27.39, 309.38°)
OKLaboklab(17.85% 0.0398 -0.0641)
OKLCHoklch(17.85% 0.075 301.9)
XYZxyz(0.8855, 0.4846, 2.4293)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18052C #192C05
analogous
#05052C #18052C #2C052C
triadic
#18052C #2C1805 #052C18
tetradic
#18052C #2C0505 #192C05 #052C2C
square
#18052C #2C0505 #192C05 #052C2C
split-complementary
#18052C #2C2C05 #052C05
monochromatic
#0F031B #0F031B #18052C #360B63 #54119A

Accessibility & contrast

On white

19.14
#18052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18052C
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18052C#FFFFFF#000000##FFFFFF
##18052C1.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18052c;
/* rgb */ color: rgb(24, 5, 44);
/* oklch */ color: oklch(17.8% 0.075 301.9);
Tailwind
colors: {
  custom: {
    50: '#564865',
    500: '#18052c',
    950: '#000000',
  },
}
SCSS
$custom: #18052c;
$custom-light: #564865;
$custom-dark: #000000;
JSON
{
  "hex": "#18052c",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 269.231,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17847,
    "c": 0.07544,
    "h": 301.9
  },
  "luminance": 0.00485
}

Semantic roles & 50–950 ramp

primary
#18052C
secondary
#476E1F
accent
#F63296
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18052C

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

Preview Lab → · Contrast checker → · Palette generator →

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