#1A102A#1A102A

#1A102A is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.1% C 0.051 H 299.5°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#1A102A
RGBrgb(26, 16, 42)
HSLhsl(263, 45%, 11%)
HSVhsv(263, 62%, 16%)
CMYKcmyk(38.1%, 61.9%, 0%, 83.5%)
CIE-LABlab(6.84, 12.16, -15.76)
CIE-LCHlch(6.84, 19.91, 307.65°)
OKLaboklab(20.15% 0.0253 -0.0447)
OKLCHoklch(20.15% 0.051 299.5)
XYZxyz(1.0291, 0.7574, 2.2820)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A102A #202A10
analogous
#10132A #1A102A #27102A
triadic
#1A102A #2A1A10 #102A1A
tetradic
#1A102A #2A1013 #202A10 #102A27
square
#1A102A #2A1013 #202A10 #102A27
split-complementary
#1A102A #2A2710 #132A10
monochromatic
#0E0816 #0E0816 #1A102A #352156 #513283

Accessibility & contrast

On white

18.24
#1A102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1A102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A102A
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A102A#FFFFFF#000000##FFFFFF
##1A102A1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08152B
Deuteranopia (green-blind)
#0A1529
Tritanopia (blue-blind)
#17151B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1a102a;
/* rgb */ color: rgb(26, 16, 42);
/* oklch */ color: oklch(20.1% 0.051 299.5);
Tailwind
colors: {
  custom: {
    50: '#574e63',
    500: '#1a102a',
    950: '#000000',
  },
}
SCSS
$custom: #1a102a;
$custom-light: #574e63;
$custom-dark: #000000;
JSON
{
  "hex": "#1a102a",
  "rgb": {
    "r": 26,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 263.077,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20149,
    "c": 0.05134,
    "h": 299.5
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#1A102A
secondary
#506233
accent
#D553A3
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #1A102A

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

Preview Lab → · Contrast checker → · Palette generator →

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