#1A072F#1A072F

#1A072F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.076 H 301.2°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#1A072F
RGBrgb(26, 7, 47)
HSLhsl(269, 74%, 11%)
HSVhsv(269, 85%, 18%)
CMYKcmyk(44.7%, 85.1%, 0%, 81.6%)
CIE-LABlab(5.21, 18.68, -22.09)
CIE-LCHlch(5.21, 28.93, 310.22°)
OKLaboklab(18.84% 0.0394 -0.065)
OKLCHoklch(18.84% 0.076 301.2)
XYZxyz(1.0149, 0.5768, 2.7466)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A072F #1C2F07
analogous
#07082F #1A072F #2E072F
triadic
#1A072F #2F1A07 #072F1A
tetradic
#1A072F #2F0708 #1C2F07 #072F2E
square
#1A072F #2F0708 #1C2F07 #072F2E
split-complementary
#1A072F #2F2E07 #082F07
monochromatic
#0F041B #0F041B #1A072F #370F64 #55179A

Accessibility & contrast

On white

18.83
#1A072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1A072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A072F
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A072F#FFFFFF#000000##FFFFFF
##1A072F1.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#15101A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1a072f;
/* rgb */ color: rgb(26, 7, 47);
/* oklch */ color: oklch(18.8% 0.076 301.2);
Tailwind
colors: {
  custom: {
    50: '#584968',
    500: '#1a072f',
    950: '#000000',
  },
}
SCSS
$custom: #1a072f;
$custom-light: #584968;
$custom-dark: #000000;
JSON
{
  "hex": "#1a072f",
  "rgb": {
    "r": 26,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 268.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18842,
    "c": 0.07597,
    "h": 301.2
  },
  "luminance": 0.00577
}

Semantic roles & 50–950 ramp

primary
#1A072F
secondary
#4B6F23
accent
#F13799
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #1A072F

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

Preview Lab → · Contrast checker → · Palette generator →

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