#1A142C#1A142C

#1A142C is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.2% C 0.047 H 293.5°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#1A142C
RGBrgb(26, 20, 44)
HSLhsl(255, 38%, 13%)
HSVhsv(255, 55%, 17%)
CMYKcmyk(40.9%, 54.5%, 0%, 82.7%)
CIE-LABlab(8.14, 10.07, -15.19)
CIE-LCHlch(8.14, 18.22, 303.53°)
OKLaboklab(21.22% 0.0186 -0.0427)
OKLCHoklch(21.22% 0.047 293.5)
XYZxyz(1.1307, 0.9018, 2.4969)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A142C #262C14
analogous
#141A2C #1A142C #26142C
triadic
#1A142C #2C1A14 #142C1A
tetradic
#1A142C #2C141A #262C14 #142C26
square
#1A142C #2C141A #262C14 #142C26
split-complementary
#1A142C #2C2614 #1A2C14
monochromatic
#0C0A15 #0C0A15 #1A142C #332756 #4C3A80

Accessibility & contrast

On white

17.79
#1A142C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1A142C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A142C
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A142C#FFFFFF#000000##FFFFFF
##1A142C1.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C182D
Deuteranopia (green-blind)
#0D172B
Tritanopia (blue-blind)
#16181D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1a142c;
/* rgb */ color: rgb(26, 20, 44);
/* oklch */ color: oklch(21.2% 0.047 293.5);
Tailwind
colors: {
  custom: {
    50: '#575165',
    500: '#1a142c',
    950: '#000000',
  },
}
SCSS
$custom: #1a142c;
$custom-light: #575165;
$custom-dark: #000000;
JSON
{
  "hex": "#1a142c",
  "rgb": {
    "r": 26,
    "g": 20,
    "b": 44
  },
  "hsl": {
    "h": 255,
    "s": 37.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21218,
    "c": 0.04658,
    "h": 293.5
  },
  "luminance": 0.00902
}

Semantic roles & 50–950 ramp

primary
#1A142C
secondary
#586239
accent
#CD5AB1
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030205
muted
#78787A

Preview Lab

Preview with #1A142C

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

Preview Lab → · Contrast checker → · Palette generator →

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