#18083F#18083F

#18083F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.096 H 288.0°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#18083F
RGBrgb(24, 8, 63)
HSLhsl(257, 77%, 14%)
HSVhsv(257, 87%, 25%)
CMYKcmyk(61.9%, 87.3%, 0%, 75.3%)
CIE-LABlab(6.56, 24.14, -31.60)
CIE-LCHlch(6.56, 39.77, 307.38°)
OKLaboklab(20.47% 0.0298 -0.0914)
OKLCHoklch(20.47% 0.096 288)
XYZxyz(1.3605, 0.7267, 4.7702)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18083F #2F3F08
analogous
#08143F #18083F #34083F
triadic
#18083F #3F1808 #083F18
tetradic
#18083F #3F0814 #2F3F08 #083F34
square
#18083F #3F0814 #2F3F08 #083F34
split-complementary
#18083F #3F3408 #143F08
monochromatic
#0A031B #0A031B #18083F #2D0F75 #4116AC

Accessibility & contrast

On white

18.33
#18083F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#18083F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18083F
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18083F#FFFFFF#000000##FFFFFF
##18083F1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00133E
Tritanopia (blue-blind)
#081823
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #18083f;
/* rgb */ color: rgb(24, 8, 63);
/* oklch */ color: oklch(20.5% 0.096 288.0);
Tailwind
colors: {
  custom: {
    50: '#5a4975',
    500: '#18083f',
    950: '#000000',
  },
}
SCSS
$custom: #18083f;
$custom-light: #5a4975;
$custom-dark: #000000;
JSON
{
  "hex": "#18083f",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 63
  },
  "hsl": {
    "h": 257.455,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20475,
    "c": 0.09612,
    "h": 288
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#18083F
secondary
#647E25
accent
#F434BC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #18083F

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

Preview Lab → · Contrast checker → · Palette generator →

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