#10042E#10042E

#10042E is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.080 H 288.9°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#10042E
RGBrgb(16, 4, 46)
HSLhsl(257, 84%, 10%)
HSVhsv(257, 91%, 18%)
CMYKcmyk(65.2%, 91.3%, 0%, 82%)
CIE-LABlab(3.56, 15.38, -24.02)
CIE-LCHlch(3.56, 28.52, 302.63°)
OKLaboklab(16.73% 0.0257 -0.0752)
OKLCHoklch(16.73% 0.08 288.9)
XYZxyz(0.7501, 0.3942, 2.6208)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#10042E #222E04
analogous
#040D2E #10042E #25042E
triadic
#10042E #2E1004 #042E10
tetradic
#10042E #2E040D #222E04 #042E25
square
#10042E #2E040D #222E04 #042E25
split-complementary
#10042E #2E2504 #0D2E04
monochromatic
#0A021C #0A021C #10042E #240966 #370E9F

Accessibility & contrast

On white

19.47
#10042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#10042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #10042E
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##10042E#FFFFFF#000000##FFFFFF
##10042E1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2F
Deuteranopia (green-blind)
#000C2D
Tritanopia (blue-blind)
#050F18
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #10042e;
/* rgb */ color: rgb(16, 4, 46);
/* oklch */ color: oklch(16.7% 0.080 288.9);
Tailwind
colors: {
  custom: {
    50: '#504867',
    500: '#10042e',
    950: '#000000',
  },
}
SCSS
$custom: #10042e;
$custom-light: #504867;
$custom-dark: #000000;
JSON
{
  "hex": "#10042e",
  "rgb": {
    "r": 16,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 257.143,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16728,
    "c": 0.0795,
    "h": 288.9
  },
  "luminance": 0.00394
}

Semantic roles & 50–950 ramp

primary
#10042E
secondary
#59711D
accent
#FA2EC0
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #10042E

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

Preview Lab → · Contrast checker → · Palette generator →

#10042E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva