#18053F#18053F

#18053F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.100 H 289.1°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#18053F
RGBrgb(24, 5, 63)
HSLhsl(260, 85%, 13%)
HSVhsv(260, 92%, 25%)
CMYKcmyk(61.9%, 92.1%, 0%, 75.3%)
CIE-LABlab(5.98, 25.70, -32.56)
CIE-LCHlch(5.98, 41.49, 308.28°)
OKLaboklab(19.99% 0.0328 -0.0947)
OKLCHoklch(19.99% 0.1 289.1)
XYZxyz(1.3279, 0.6615, 4.7594)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18053F #2C3F05
analogous
#050F3F #18053F #35053F
triadic
#18053F #3F1805 #053F18
tetradic
#18053F #3F050F #2C3F05 #053F35
square
#18053F #3F050F #2C3F05 #053F35
split-complementary
#18053F #3F3505 #0F3F05
monochromatic
#0B021C #0B021C #18053F #2E0978 #430EB0

Accessibility & contrast

On white

18.54
#18053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18053F
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18053F#FFFFFF#000000##FFFFFF
##18053F1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001441
Deuteranopia (green-blind)
#00123E
Tritanopia (blue-blind)
#081622
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #18053f;
/* rgb */ color: rgb(24, 5, 63);
/* oklch */ color: oklch(20.0% 0.100 289.1);
Tailwind
colors: {
  custom: {
    50: '#5b4875',
    500: '#18053f',
    950: '#000000',
  },
}
SCSS
$custom: #18053f;
$custom-light: #5b4875;
$custom-dark: #000000;
JSON
{
  "hex": "#18053f",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 259.655,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19995,
    "c": 0.10021,
    "h": 289.1
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#18053F
secondary
#608020
accent
#FC2CB8
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #18053F

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

Preview Lab → · Contrast checker → · Palette generator →

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