#1A102E#1A102E

#1A102E is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.5% C 0.058 H 296.3°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#1A102E
RGBrgb(26, 16, 46)
HSLhsl(260, 48%, 12%)
HSVhsv(260, 65%, 18%)
CMYKcmyk(43.5%, 65.2%, 0%, 82%)
CIE-LABlab(7.11, 13.62, -18.31)
CIE-LCHlch(7.11, 22.82, 306.64°)
OKLaboklab(20.47% 0.0257 -0.052)
OKLCHoklch(20.47% 0.058 296.3)
XYZxyz(1.1043, 0.7874, 2.6780)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A102E #242E10
analogous
#10152E #1A102E #29102E
triadic
#1A102E #2E1A10 #102E1A
tetradic
#1A102E #2E1015 #242E10 #102E29
square
#1A102E #2E1015 #242E10 #102E29
split-complementary
#1A102E #2E2910 #152E10
monochromatic
#0D0817 #0D0817 #1A102E #34205B #4D3089

Accessibility & contrast

On white

18.14
#1A102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1A102E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A102E
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A102E#FFFFFF#000000##FFFFFF
##1A102E1.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05162F
Deuteranopia (green-blind)
#07152D
Tritanopia (blue-blind)
#15161C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1a102e;
/* rgb */ color: rgb(26, 16, 46);
/* oklch */ color: oklch(20.5% 0.058 296.3);
Tailwind
colors: {
  custom: {
    50: '#584e67',
    500: '#1a102e',
    950: '#000000',
  },
}
SCSS
$custom: #1a102e;
$custom-light: #584e67;
$custom-dark: #000000;
JSON
{
  "hex": "#1a102e",
  "rgb": {
    "r": 26,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 260,
    "s": 48.387,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20467,
    "c": 0.05801,
    "h": 296.3
  },
  "luminance": 0.00787
}

Semantic roles & 50–950 ramp

primary
#1A102E
secondary
#566733
accent
#D850AB
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #1A102E

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

Preview Lab → · Contrast checker → · Palette generator →

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