#1A042F#1A042F

#1A042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.082 H 302.8°. Best body text is #FFFFFF at 19.05:1 contrast (WCAG AA passes).

Color values

HEX#1A042F
RGBrgb(26, 4, 47)
HSLhsl(271, 84%, 10%)
HSVhsv(271, 91%, 18%)
CMYKcmyk(44.7%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.62, 20.03, -23.02)
CIE-LCHlch(4.62, 30.51, 311.02°)
OKLaboklab(18.27% 0.0443 -0.0688)
OKLCHoklch(18.27% 0.082 302.8)
XYZxyz(0.9824, 0.5117, 2.7358)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A042F #192F04
analogous
#05042F #1A042F #2F042E
triadic
#1A042F #2F1A04 #042F1A
tetradic
#1A042F #2F0504 #192F04 #042E2F
square
#1A042F #2F0504 #192F04 #042E2F
split-complementary
#1A042F #2E2F04 #042F05
monochromatic
#10021C #10021C #1A042F #390967 #580EA0

Accessibility & contrast

On white

19.05
#1A042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1A042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A042F
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A042F#FFFFFF#000000##FFFFFF
##1A042F1.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#160E19
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1a042f;
/* rgb */ color: rgb(26, 4, 47);
/* oklch */ color: oklch(18.3% 0.082 302.8);
Tailwind
colors: {
  custom: {
    50: '#584868',
    500: '#1a042f',
    950: '#000000',
  },
}
SCSS
$custom: #1a042f;
$custom-light: #584868;
$custom-dark: #000000;
JSON
{
  "hex": "#1a042f",
  "rgb": {
    "r": 26,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 270.698,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18268,
    "c": 0.08185,
    "h": 302.8
  },
  "luminance": 0.00512
}

Semantic roles & 50–950 ramp

primary
#1A042F
secondary
#46721D
accent
#FB2D92
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1A042F

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

Preview Lab → · Contrast checker → · Palette generator →

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