#18103B#18103B

#18103B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.079 H 286.2°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#18103B
RGBrgb(24, 16, 59)
HSLhsl(251, 57%, 15%)
HSVhsv(251, 73%, 23%)
CMYKcmyk(59.3%, 72.9%, 0%, 76.9%)
CIE-LABlab(7.95, 17.88, -26.47)
CIE-LCHlch(7.95, 31.94, 304.04°)
OKLaboklab(21.41% 0.022 -0.0759)
OKLCHoklch(21.41% 0.079 286.2)
XYZxyz(1.3512, 0.8805, 4.2356)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18103B #333B10
analogous
#101E3B #18103B #2E103B
triadic
#18103B #3B1810 #103B18
tetradic
#18103B #3B101E #333B10 #103B2E
square
#18103B #3B101E #333B10 #103B2E
split-complementary
#18103B #3B2E10 #1E3B10
monochromatic
#0A0718 #0A0718 #18103B #2C1D6B #3F2A9B

Accessibility & contrast

On white

17.85
#18103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#18103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18103B
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18103B#FFFFFF#000000##FFFFFF
##18103B1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#0B1A23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #18103b;
/* rgb */ color: rgb(24, 16, 59);
/* oklch */ color: oklch(21.4% 0.079 286.2);
Tailwind
colors: {
  custom: {
    50: '#594e71',
    500: '#18103b',
    950: '#000000',
  },
}
SCSS
$custom: #18103b;
$custom-light: #594e71;
$custom-dark: #000000;
JSON
{
  "hex": "#18103b",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 251.163,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21406,
    "c": 0.07901,
    "h": 286.2
  },
  "luminance": 0.00881
}

Semantic roles & 50–950 ramp

primary
#18103B
secondary
#687532
accent
#E147C4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #18103B

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

Preview Lab → · Contrast checker → · Palette generator →

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