#180740#180740

#180740 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.099 H 287.9°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#180740
RGBrgb(24, 7, 64)
HSLhsl(258, 80%, 14%)
HSVhsv(258, 89%, 25%)
CMYKcmyk(62.5%, 89.1%, 0%, 74.9%)
CIE-LABlab(6.47, 25.06, -32.47)
CIE-LCHlch(6.47, 41.02, 307.66°)
OKLaboklab(20.43% 0.0304 -0.094)
OKLCHoklch(20.43% 0.099 287.9)
XYZxyz(1.3778, 0.7162, 4.9151)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180740 #2F4007
analogous
#071340 #180740 #350740
triadic
#180740 #401807 #074018
tetradic
#180740 #400713 #2F4007 #074035
square
#180740 #400713 #2F4007 #074035
split-complementary
#180740 #403507 #134007
monochromatic
#0A031C #0A031C #180740 #2D0D77 #4113AE

Accessibility & contrast

On white

18.37
#180740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180740
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180740#FFFFFF#000000##FFFFFF
##1807401.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#071723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180740;
/* rgb */ color: rgb(24, 7, 64);
/* oklch */ color: oklch(20.4% 0.099 287.9);
Tailwind
colors: {
  custom: {
    50: '#5b4975',
    500: '#180740',
    950: '#000000',
  },
}
SCSS
$custom: #180740;
$custom-light: #5b4975;
$custom-dark: #000000;
JSON
{
  "hex": "#180740",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 257.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20435,
    "c": 0.09878,
    "h": 287.9
  },
  "luminance": 0.00716
}

Semantic roles & 50–950 ramp

primary
#180740
secondary
#647F24
accent
#F731BC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180740

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

Preview Lab → · Contrast checker → · Palette generator →

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