#1A0239#1A0239

#1A0239 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.098 H 296.2°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#1A0239
RGBrgb(26, 2, 57)
HSLhsl(266, 93%, 12%)
HSVhsv(266, 96%, 22%)
CMYKcmyk(54.4%, 96.5%, 0%, 77.6%)
CIE-LABlab(5.04, 25.26, -29.73)
CIE-LCHlch(5.04, 39.02, 310.36°)
OKLaboklab(19.02% 0.0431 -0.0876)
OKLCHoklch(19.02% 0.098 296.2)
XYZxyz(1.1860, 0.5584, 3.9154)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0239 #213902
analogous
#020639 #1A0239 #360239
triadic
#1A0239 #391A02 #02391A
tetradic
#1A0239 #390206 #213902 #023936
square
#1A0239 #390206 #213902 #023936
split-complementary
#1A0239 #393602 #063902
monochromatic
#0D011E #0D011E #1A0239 #350474 #5006AF

Accessibility & contrast

On white

18.89
#1A0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A0239
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0239#FFFFFF#000000##FFFFFF
##1A02391.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113A
Deuteranopia (green-blind)
#001038
Tritanopia (blue-blind)
#11111E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1a0239;
/* rgb */ color: rgb(26, 2, 57);
/* oklch */ color: oklch(19.0% 0.098 296.2);
Tailwind
colors: {
  custom: {
    50: '#5b4670',
    500: '#1a0239',
    950: '#000000',
  },
}
SCSS
$custom: #1a0239;
$custom-light: #5b4670;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0239",
  "rgb": {
    "r": 26,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 266.182,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19022,
    "c": 0.09763,
    "h": 296.2
  },
  "luminance": 0.00558
}

Semantic roles & 50–950 ramp

primary
#1A0239
secondary
#527D1A
accent
#FF29A2
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1A0239

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

Preview Lab → · Contrast checker → · Palette generator →

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