#18062C#18062C

#18062C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.073 H 301.3°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#18062C
RGBrgb(24, 6, 44)
HSLhsl(268, 76%, 10%)
HSVhsv(268, 86%, 17%)
CMYKcmyk(45.5%, 86.4%, 0%, 82.7%)
CIE-LABlab(4.57, 16.96, -20.86)
CIE-LCHlch(4.57, 26.88, 309.11°)
OKLaboklab(18.05% 0.0381 -0.0627)
OKLCHoklch(18.05% 0.073 301.3)
XYZxyz(0.8963, 0.5063, 2.4329)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18062C #1A2C06
analogous
#06072C #18062C #2B062C
triadic
#18062C #2C1806 #062C18
tetradic
#18062C #2C0607 #1A2C06 #062C2B
square
#18062C #2C0607 #1A2C06 #062C2B
split-complementary
#18062C #2C2B06 #072C06
monochromatic
#0F041B #0F041B #18062C #350D62 #531598

Accessibility & contrast

On white

19.07
#18062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18062C
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18062C#FFFFFF#000000##FFFFFF
##18062C1.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#140F18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18062c;
/* rgb */ color: rgb(24, 6, 44);
/* oklch */ color: oklch(18.1% 0.073 301.3);
Tailwind
colors: {
  custom: {
    50: '#564965',
    500: '#18062c',
    950: '#000000',
  },
}
SCSS
$custom: #18062c;
$custom-light: #564965;
$custom-dark: #000000;
JSON
{
  "hex": "#18062c",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 268.421,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18051,
    "c": 0.07336,
    "h": 301.3
  },
  "luminance": 0.00506
}

Semantic roles & 50–950 ramp

primary
#18062C
secondary
#496D21
accent
#F33599
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18062C

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

Preview Lab → · Contrast checker → · Palette generator →

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