#18053C#18053C

#18053C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.6% C 0.096 H 290.7°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#18053C
RGBrgb(24, 5, 60)
HSLhsl(261, 85%, 13%)
HSVhsv(261, 92%, 24%)
CMYKcmyk(60%, 91.7%, 0%, 76.5%)
CIE-LABlab(5.68, 24.45, -30.88)
CIE-LCHlch(5.68, 39.39, 308.37°)
OKLaboklab(19.63% 0.0341 -0.0901)
OKLCHoklch(19.63% 0.096 290.7)
XYZxyz(1.2463, 0.6289, 4.3298)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18053C #293C05
analogous
#050E3C #18053C #33053C
triadic
#18053C #3C1805 #053C18
tetradic
#18053C #3C050E #293C05 #053C33
square
#18053C #3C050E #293C05 #053C33
split-complementary
#18053C #3C3305 #0E3C05
monochromatic
#0B021C #0B021C #18053C #2F0A74 #450EAD

Accessibility & contrast

On white

18.65
#18053C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#18053C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18053C
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18053C#FFFFFF#000000##FFFFFF
##18053C1.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133E
Deuteranopia (green-blind)
#00113B
Tritanopia (blue-blind)
#0B1521
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #18053c;
/* rgb */ color: rgb(24, 5, 60);
/* oklch */ color: oklch(19.6% 0.096 290.7);
Tailwind
colors: {
  custom: {
    50: '#5a4872',
    500: '#18053c',
    950: '#000000',
  },
}
SCSS
$custom: #18053c;
$custom-light: #5a4872;
$custom-dark: #000000;
JSON
{
  "hex": "#18053c",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 60
  },
  "hsl": {
    "h": 260.727,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19635,
    "c": 0.09636,
    "h": 290.7
  },
  "luminance": 0.00629
}

Semantic roles & 50–950 ramp

primary
#18053C
secondary
#5D7D20
accent
#FB2DB4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #18053C

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

Preview Lab → · Contrast checker → · Palette generator →

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