#180838#180838

#180838 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.086 H 291.7°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#180838
RGBrgb(24, 8, 56)
HSLhsl(260, 75%, 13%)
HSVhsv(260, 86%, 22%)
CMYKcmyk(57.1%, 85.7%, 0%, 78%)
CIE-LABlab(5.90, 21.28, -27.63)
CIE-LCHlch(5.90, 34.87, 307.61°)
OKLaboklab(19.69% 0.032 -0.0803)
OKLCHoklch(19.69% 0.087 291.7)
XYZxyz(1.1771, 0.6533, 3.8047)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180838 #283808
analogous
#081038 #180838 #300838
triadic
#180838 #381808 #083818
tetradic
#180838 #380810 #283808 #083830
square
#180838 #380810 #283808 #083830
split-complementary
#180838 #383008 #103808
monochromatic
#0B041B #0B041B #180838 #2F106E #4617A3

Accessibility & contrast

On white

18.57
#180838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180838
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180838#FFFFFF#000000##FFFFFF
##1808381.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001237
Tritanopia (blue-blind)
#0E151F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180838;
/* rgb */ color: rgb(24, 8, 56);
/* oklch */ color: oklch(19.7% 0.086 291.7);
Tailwind
colors: {
  custom: {
    50: '#59496f',
    500: '#180838',
    950: '#000000',
  },
}
SCSS
$custom: #180838;
$custom-light: #59496f;
$custom-dark: #000000;
JSON
{
  "hex": "#180838",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 260,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19687,
    "c": 0.0865,
    "h": 291.7
  },
  "luminance": 0.00653
}

Semantic roles & 50–950 ramp

primary
#180838
secondary
#5C7725
accent
#F236B3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180838

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

Preview Lab → · Contrast checker → · Palette generator →

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