#1A052D#1A052D

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

Color values

HEX#1A052D
RGBrgb(26, 5, 45)
HSLhsl(272, 80%, 10%)
HSVhsv(272, 89%, 18%)
CMYKcmyk(42.2%, 88.9%, 0%, 82.4%)
CIE-LABlab(4.68, 18.73, -21.44)
CIE-LCHlch(4.68, 28.47, 311.14°)
OKLaboklab(18.26% 0.0432 -0.064)
OKLCHoklch(18.26% 0.077 304)
XYZxyz(0.9538, 0.5176, 2.5318)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A052D #182D05
analogous
#06052D #1A052D #2D052C
triadic
#1A052D #2D1A05 #052D1A
tetradic
#1A052D #2D0605 #182D05 #052C2D
square
#1A052D #2D0605 #182D05 #052C2D
split-complementary
#1A052D #2C2D05 #052D06
monochromatic
#10031C #10031C #1A052D #3A0B64 #5A119B

Accessibility & contrast

On white

19.03
#1A052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A052D
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A052D#FFFFFF#000000##FFFFFF
##1A052D1.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#160E18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1a052d;
/* rgb */ color: rgb(26, 5, 45);
/* oklch */ color: oklch(18.3% 0.077 304.0);
Tailwind
colors: {
  custom: {
    50: '#584866',
    500: '#1a052d',
    950: '#000000',
  },
}
SCSS
$custom: #1a052d;
$custom-light: #584866;
$custom-dark: #000000;
JSON
{
  "hex": "#1a052d",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 271.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18259,
    "c": 0.07725,
    "h": 304
  },
  "luminance": 0.00518
}

Semantic roles & 50–950 ramp

primary
#1A052D
secondary
#456F1F
accent
#F6318F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1A052D

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

Preview Lab → · Contrast checker → · Palette generator →

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