#180741#180741

#180741 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.100 H 287.4°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#180741
RGBrgb(24, 7, 65)
HSLhsl(258, 81%, 14%)
HSVhsv(258, 89%, 25%)
CMYKcmyk(63.1%, 89.2%, 0%, 74.5%)
CIE-LABlab(6.57, 25.46, -33.02)
CIE-LCHlch(6.57, 41.69, 307.63°)
OKLaboklab(20.55% 0.03 -0.0955)
OKLCHoklch(20.55% 0.1 287.4)
XYZxyz(1.4065, 0.7277, 5.0664)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180741 #304107
analogous
#071341 #180741 #350741
triadic
#180741 #411807 #074118
tetradic
#180741 #410713 #304107 #074135
square
#180741 #410713 #304107 #074135
split-complementary
#180741 #413507 #134107
monochromatic
#0A031C #0A031C #180741 #2C0D78 #4113B0

Accessibility & contrast

On white

18.33
#180741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180741
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180741#FFFFFF#000000##FFFFFF
##1807411.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#061824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180741;
/* rgb */ color: rgb(24, 7, 65);
/* oklch */ color: oklch(20.6% 0.100 287.4);
Tailwind
colors: {
  custom: {
    50: '#5b4976',
    500: '#180741',
    950: '#000000',
  },
}
SCSS
$custom: #180741;
$custom-light: #5b4976;
$custom-dark: #000000;
JSON
{
  "hex": "#180741",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 257.586,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20553,
    "c": 0.10012,
    "h": 287.4
  },
  "luminance": 0.00728
}

Semantic roles & 50–950 ramp

primary
#180741
secondary
#658024
accent
#F731BD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180741

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

Preview Lab → · Contrast checker → · Palette generator →

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