#1A052F#1A052F

#1A052F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.080 H 302.3°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#1A052F
RGBrgb(26, 5, 47)
HSLhsl(270, 81%, 10%)
HSVhsv(270, 89%, 18%)
CMYKcmyk(44.7%, 89.4%, 0%, 81.6%)
CIE-LABlab(4.82, 19.58, -22.71)
CIE-LCHlch(4.82, 29.99, 310.76°)
OKLaboklab(18.46% 0.0426 -0.0675)
OKLCHoklch(18.46% 0.08 302.3)
XYZxyz(0.9932, 0.5334, 2.7394)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A052F #1A2F05
analogous
#05052F #1A052F #2F052F
triadic
#1A052F #2F1A05 #052F1A
tetradic
#1A052F #2F0505 #1A2F05 #052F2F
square
#1A052F #2F0505 #1A2F05 #052F2F
split-complementary
#1A052F #2F2F05 #052F05
monochromatic
#0F031C #0F031C #1A052F #390B66 #57119E

Accessibility & contrast

On white

18.98
#1A052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A052F
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A052F#FFFFFF#000000##FFFFFF
##1A052F1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a052f;
/* rgb */ color: rgb(26, 5, 47);
/* oklch */ color: oklch(18.5% 0.080 302.3);
Tailwind
colors: {
  custom: {
    50: '#584868',
    500: '#1a052f',
    950: '#000000',
  },
}
SCSS
$custom: #1a052f;
$custom-light: #584868;
$custom-dark: #000000;
JSON
{
  "hex": "#1a052f",
  "rgb": {
    "r": 26,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 270,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18463,
    "c": 0.07982,
    "h": 302.3
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#1A052F
secondary
#48711F
accent
#F73194
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #1A052F

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

Preview Lab → · Contrast checker → · Palette generator →

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