#18062F#18062F

#18062F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.077 H 298.8°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#18062F
RGBrgb(24, 6, 47)
HSLhsl(266, 77%, 10%)
HSVhsv(266, 87%, 18%)
CMYKcmyk(48.9%, 87.2%, 0%, 81.6%)
CIE-LABlab(4.78, 18.30, -22.78)
CIE-LCHlch(4.78, 29.22, 308.77°)
OKLaboklab(18.36% 0.0374 -0.0679)
OKLCHoklch(18.36% 0.077 298.8)
XYZxyz(0.9548, 0.5297, 2.7407)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18062F #1D2F06
analogous
#06092F #18062F #2C062F
triadic
#18062F #2F1806 #062F18
tetradic
#18062F #2F0609 #1D2F06 #062F2C
square
#18062F #2F0609 #1D2F06 #062F2C
split-complementary
#18062F #2F2C06 #092F06
monochromatic
#0E031B #0E031B #18062F #340D65 #4F149C

Accessibility & contrast

On white

18.99
#18062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#18062F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18062F
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18062F#FFFFFF#000000##FFFFFF
##18062F1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#121019
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18062f;
/* rgb */ color: rgb(24, 6, 47);
/* oklch */ color: oklch(18.4% 0.077 298.8);
Tailwind
colors: {
  custom: {
    50: '#574968',
    500: '#18062f',
    950: '#000000',
  },
}
SCSS
$custom: #18062f;
$custom-light: #574968;
$custom-dark: #000000;
JSON
{
  "hex": "#18062f",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 266.341,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.1836,
    "c": 0.07747,
    "h": 298.8
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#18062F
secondary
#4D7021
accent
#F434A0
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18062F

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

Preview Lab → · Contrast checker → · Palette generator →

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