#1A062C#1A062C

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

Color values

HEX#1A062C
RGBrgb(26, 6, 44)
HSLhsl(272, 76%, 10%)
HSVhsv(272, 86%, 17%)
CMYKcmyk(40.9%, 86.4%, 0%, 82.7%)
CIE-LABlab(4.80, 17.87, -20.48)
CIE-LCHlch(4.80, 27.18, 311.10°)
OKLaboklab(18.36% 0.0417 -0.061)
OKLCHoklch(18.36% 0.074 304.4)
XYZxyz(0.9456, 0.5317, 2.4352)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A062C #182C06
analogous
#07062C #1A062C #2C062B
triadic
#1A062C #2C1A06 #062C1A
tetradic
#1A062C #2C0706 #182C06 #062B2C
square
#1A062C #2C0706 #182C06 #062B2C
split-complementary
#1A062C #2B2C06 #062C07
monochromatic
#10041B #10041B #1A062C #3A0D62 #5A1598

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A062C#FFFFFF#000000##FFFFFF
##1A062C1.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)
#00102D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#170F18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1a062c;
/* rgb */ color: rgb(26, 6, 44);
/* oklch */ color: oklch(18.4% 0.074 304.4);
Tailwind
colors: {
  custom: {
    50: '#584965',
    500: '#1a062c',
    950: '#000000',
  },
}
SCSS
$custom: #1a062c;
$custom-light: #584965;
$custom-dark: #000000;
JSON
{
  "hex": "#1a062c",
  "rgb": {
    "r": 26,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 271.579,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18356,
    "c": 0.07388,
    "h": 304.4
  },
  "luminance": 0.00532
}

Semantic roles & 50–950 ramp

primary
#1A062C
secondary
#456D21
accent
#F3358F
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #1A062C

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

Preview Lab → · Contrast checker → · Palette generator →

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