#180738#180738

#180738 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.5% C 0.088 H 292.2°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#180738
RGBrgb(24, 7, 56)
HSLhsl(261, 78%, 12%)
HSVhsv(261, 88%, 22%)
CMYKcmyk(57.1%, 87.5%, 0%, 78%)
CIE-LABlab(5.71, 21.77, -27.94)
CIE-LCHlch(5.71, 35.42, 307.92°)
OKLaboklab(19.52% 0.0332 -0.0815)
OKLCHoklch(19.52% 0.088 292.2)
XYZxyz(1.1663, 0.6316, 3.8011)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180738 #273807
analogous
#070F38 #180738 #310738
triadic
#180738 #381807 #073818
tetradic
#180738 #38070F #273807 #073831
square
#180738 #38070F #273807 #073831
split-complementary
#180738 #383107 #0F3807
monochromatic
#0C031B #0C031B #180738 #2F0E6E #4715A5

Accessibility & contrast

On white

18.64
#180738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180738
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180738#FFFFFF#000000##FFFFFF
##1807381.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180738;
/* rgb */ color: rgb(24, 7, 56);
/* oklch */ color: oklch(19.5% 0.088 292.2);
Tailwind
colors: {
  custom: {
    50: '#59496f',
    500: '#180738',
    950: '#000000',
  },
}
SCSS
$custom: #180738;
$custom-light: #59496f;
$custom-dark: #000000;
JSON
{
  "hex": "#180738",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 260.816,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19516,
    "c": 0.08802,
    "h": 292.2
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#180738
secondary
#5A7823
accent
#F434B1
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180738

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

Preview Lab → · Contrast checker → · Palette generator →

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