#1A0F4F#1A0F4F

#1A0F4F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.110 H 281.8°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#1A0F4F
RGBrgb(26, 15, 79)
HSLhsl(250, 68%, 18%)
HSVhsv(250, 81%, 31%)
CMYKcmyk(67.1%, 81%, 0%, 69%)
CIE-LABlab(10.00, 26.16, -37.19)
CIE-LCHlch(10.00, 45.47, 305.13°)
OKLaboklab(23.56% 0.0224 -0.1072)
OKLCHoklch(23.56% 0.11 281.8)
XYZxyz(2.0077, 1.1256, 7.5071)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A0F4F #444F0F
analogous
#0F244F #1A0F4F #3A0F4F
triadic
#1A0F4F #4F1A0F #0F4F1A
tetradic
#1A0F4F #4F0F24 #444F0F #0F4F3A
square
#1A0F4F #4F0F24 #444F0F #0F4F3A
split-complementary
#1A0F4F #4F3A0F #244F0F
monochromatic
#08051A #09051C #1A0F4F #2B1982 #3C23B6

Accessibility & contrast

On white

17.14
#1A0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1A0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A0F4F
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A0F4F#FFFFFF#000000##FFFFFF
##1A0F4F1.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#00194E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1a0f4f;
/* rgb */ color: rgb(26, 15, 79);
/* oklch */ color: oklch(23.6% 0.110 281.8);
Tailwind
colors: {
  custom: {
    50: '#5f4f81',
    500: '#1a0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1a0f4f;
$custom-light: #5f4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#1a0f4f",
  "rgb": {
    "r": 26,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 250.313,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2356,
    "c": 0.10955,
    "h": 281.8
  },
  "luminance": 0.01126
}

Semantic roles & 50–950 ramp

primary
#1A0F4F
secondary
#7A8931
accent
#EB3DCD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1A0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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