#1A072C#1A072C

#1A072C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.072 H 303.8°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#1A072C
RGBrgb(26, 7, 44)
HSLhsl(271, 73%, 10%)
HSVhsv(271, 84%, 17%)
CMYKcmyk(40.9%, 84.1%, 0%, 82.7%)
CIE-LABlab(5.00, 17.44, -20.17)
CIE-LCHlch(5.00, 26.66, 310.84°)
OKLaboklab(18.55% 0.04 -0.0597)
OKLCHoklch(18.55% 0.072 303.8)
XYZxyz(0.9565, 0.5534, 2.4388)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A072C #192C07
analogous
#08072C #1A072C #2C072B
triadic
#1A072C #2C1A07 #072C1A
tetradic
#1A072C #2C0807 #192C07 #072B2C
square
#1A072C #2C0807 #192C07 #072B2C
split-complementary
#1A072C #2B2C07 #072C08
monochromatic
#10041A #10041A #1A072C #390F61 #581896

Accessibility & contrast

On white

18.91
#1A072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A072C
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A072C#FFFFFF#000000##FFFFFF
##1A072C1.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a072c;
/* rgb */ color: rgb(26, 7, 44);
/* oklch */ color: oklch(18.5% 0.072 303.8);
Tailwind
colors: {
  custom: {
    50: '#584965',
    500: '#1a072c',
    950: '#000000',
  },
}
SCSS
$custom: #1a072c;
$custom-light: #584965;
$custom-dark: #000000;
JSON
{
  "hex": "#1a072c",
  "rgb": {
    "r": 26,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 270.811,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.18549,
    "c": 0.07186,
    "h": 303.8
  },
  "luminance": 0.00553
}

Semantic roles & 50–950 ramp

primary
#1A072C
secondary
#466C23
accent
#EF3991
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030105
muted
#78777A

Preview Lab

Preview with #1A072C

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

Preview Lab → · Contrast checker → · Palette generator →

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