#18062B#18062B

#18062B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.072 H 302.2°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#18062B
RGBrgb(24, 6, 43)
HSLhsl(269, 76%, 10%)
HSVhsv(269, 86%, 17%)
CMYKcmyk(44.2%, 86%, 0%, 83.1%)
CIE-LABlab(4.51, 16.51, -20.21)
CIE-LCHlch(4.51, 26.10, 309.25°)
OKLaboklab(17.95% 0.0383 -0.0609)
OKLCHoklch(17.95% 0.072 302.2)
XYZxyz(0.8778, 0.4989, 2.3351)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18062B #192B06
analogous
#06072B #18062B #2B062B
triadic
#18062B #2B1806 #062B18
tetradic
#18062B #2B0607 #192B06 #062B2B
square
#18062B #2B0607 #192B06 #062B2B
split-complementary
#18062B #2B2B06 #072B06
monochromatic
#0F041B #0F041B #18062B #360D61 #541596

Accessibility & contrast

On white

19.09
#18062B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#18062B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18062B
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18062B#FFFFFF#000000##FFFFFF
##18062B1.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#140E17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18062b;
/* rgb */ color: rgb(24, 6, 43);
/* oklch */ color: oklch(18.0% 0.072 302.2);
Tailwind
colors: {
  custom: {
    50: '#564964',
    500: '#18062b',
    950: '#000000',
  },
}
SCSS
$custom: #18062b;
$custom-light: #564964;
$custom-dark: #000000;
JSON
{
  "hex": "#18062b",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 43
  },
  "hsl": {
    "h": 269.189,
    "s": 75.51,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17951,
    "c": 0.072,
    "h": 302.2
  },
  "luminance": 0.00499
}

Semantic roles & 50–950 ramp

primary
#18062B
secondary
#476C21
accent
#F23696
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18062B

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

Preview Lab → · Contrast checker → · Palette generator →

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