#060218#060218

#060218 is a very dark, muted violet. Relative luminance 0.001; OKLCH L 12.0% C 0.052 H 288.5°. Best body text is #FFFFFF at 20.40:1 contrast (WCAG AA passes).

Color values

HEX#060218
RGBrgb(6, 2, 24)
HSLhsl(251, 85%, 5%)
HSVhsv(251, 92%, 9%)
CMYKcmyk(75%, 91.7%, 0%, 90.6%)
CIE-LABlab(1.34, 4.95, -10.26)
CIE-LCHlch(1.34, 11.39, 295.75°)
OKLaboklab(11.98% 0.0167 -0.0498)
OKLCHoklch(11.98% 0.052 288.5)
XYZxyz(0.2616, 0.1481, 0.8788)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#060218 #141802
analogous
#020918 #060218 #110218
triadic
#060218 #180602 #021806
tetradic
#060218 #180209 #141802 #021811
square
#060218 #180209 #141802 #021811
split-complementary
#060218 #181102 #091802
monochromatic
#07021C #07021C #07021C #140750 #220B89

Accessibility & contrast

On white

20.40
#060218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#060218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #060218
20.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##060218#FFFFFF#000000##FFFFFF
##0602181.0020.401.0320.40
#FFFFFF20.401.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000519
Deuteranopia (green-blind)
#000418
Tritanopia (blue-blind)
#02060B
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #060218;
/* rgb */ color: rgb(6, 2, 24);
/* oklch */ color: oklch(12.0% 0.052 288.5);
Tailwind
colors: {
  custom: {
    50: '#494854',
    500: '#060218',
    950: '#000000',
  },
}
SCSS
$custom: #060218;
$custom-light: #494854;
$custom-dark: #000000;
JSON
{
  "hex": "#060218",
  "rgb": {
    "r": 6,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 250.909,
    "s": 84.615,
    "l": 5.098
  },
  "oklch": {
    "l": 0.11977,
    "c": 0.05249,
    "h": 288.5
  },
  "luminance": 0.00148
}

Semantic roles & 50–950 ramp

primary
#060218
secondary
#515E18
accent
#FB2DD5
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #060218

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

Preview Lab → · Contrast checker → · Palette generator →

#060218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva