#180746#180746

#180746 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.107 H 285.3°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#180746
RGBrgb(24, 7, 70)
HSLhsl(256, 82%, 15%)
HSVhsv(256, 90%, 27%)
CMYKcmyk(65.7%, 90%, 0%, 72.5%)
CIE-LABlab(7.12, 27.35, -35.66)
CIE-LCHlch(7.12, 44.94, 307.49°)
OKLaboklab(21.15% 0.0281 -0.1029)
OKLCHoklch(21.15% 0.107 285.3)
XYZxyz(1.5578, 0.7882, 5.8632)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180746 #354607
analogous
#071646 #180746 #370746
triadic
#180746 #461807 #074618
tetradic
#180746 #460716 #354607 #074637
square
#180746 #460716 #354607 #074637
split-complementary
#180746 #463707 #164607
monochromatic
#0A031C #0A031C #180746 #2B0D7E #3E12B5

Accessibility & contrast

On white

18.14
#180746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180746
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180746#FFFFFF#000000##FFFFFF
##1807461.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#011A27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180746;
/* rgb */ color: rgb(24, 7, 70);
/* oklch */ color: oklch(21.2% 0.107 285.3);
Tailwind
colors: {
  custom: {
    50: '#5c497a',
    500: '#180746',
    950: '#000000',
  },
}
SCSS
$custom: #180746;
$custom-light: #5c497a;
$custom-dark: #000000;
JSON
{
  "hex": "#180746",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 256.19,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21154,
    "c": 0.10669,
    "h": 285.3
  },
  "luminance": 0.00788
}

Semantic roles & 50–950 ramp

primary
#180746
secondary
#6B8524
accent
#F830C2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #180746

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

Preview Lab → · Contrast checker → · Palette generator →

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