#1A072B#1A072B

#1A072B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.070 H 304.7°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#1A072B
RGBrgb(26, 7, 43)
HSLhsl(272, 72%, 10%)
HSVhsv(272, 84%, 17%)
CMYKcmyk(39.5%, 83.7%, 0%, 83.1%)
CIE-LABlab(4.93, 17.02, -19.52)
CIE-LCHlch(4.93, 25.90, 311.08°)
OKLaboklab(18.45% 0.0402 -0.0579)
OKLCHoklch(18.45% 0.07 304.7)
XYZxyz(0.9379, 0.5460, 2.3410)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A072B #182B07
analogous
#08072B #1A072B #2B072A
triadic
#1A072B #2B1A07 #072B1A
tetradic
#1A072B #2B0807 #182B07 #072A2B
square
#1A072B #2B0807 #182B07 #072A2B
split-complementary
#1A072B #2A2B07 #072B08
monochromatic
#10041A #10041A #1A072B #3A1060 #5A1894

Accessibility & contrast

On white

18.93
#1A072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1A072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A072B
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A072B#FFFFFF#000000##FFFFFF
##1A072B1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#00112A
Tritanopia (blue-blind)
#170F18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1a072b;
/* rgb */ color: rgb(26, 7, 43);
/* oklch */ color: oklch(18.5% 0.070 304.7);
Tailwind
colors: {
  custom: {
    50: '#574964',
    500: '#1a072b',
    950: '#000000',
  },
}
SCSS
$custom: #1a072b;
$custom-light: #574964;
$custom-dark: #000000;
JSON
{
  "hex": "#1a072b",
  "rgb": {
    "r": 26,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 271.667,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18454,
    "c": 0.07048,
    "h": 304.7
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#1A072B
secondary
#456B23
accent
#EF398F
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #1A072B

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

Preview Lab → · Contrast checker → · Palette generator →

#1A072B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva