#1F0F6A#1F0F6A

#1F0F6A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.144 H 278.9°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#1F0F6A
RGBrgb(31, 15, 106)
HSLhsl(251, 75%, 24%)
HSVhsv(251, 86%, 42%)
CMYKcmyk(70.8%, 85.8%, 0%, 58.4%)
CIE-LABlab(13.67, 35.83, -49.26)
CIE-LCHlch(13.67, 60.91, 306.03°)
OKLaboklab(27.19% 0.0222 -0.1423)
OKLCHoklch(27.19% 0.144 278.9)
XYZxyz(3.3366, 1.6733, 13.7800)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F6A #5A6A0F
analogous
#0F2C6A #1F0F6A #4C0F6A
triadic
#1F0F6A #6A1F0F #0F6A1F
tetradic
#1F0F6A #6A0F2C #5A6A0F #0F6A4C
square
#1F0F6A #6A0F2C #5A6A0F #0F6A4C
split-complementary
#1F0F6A #6A4C0F #2C6A0F
monochromatic
#08041B #0F0734 #1F0F6A #2F17A0 #3E1ED5

Accessibility & contrast

On white

15.73
#1F0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F6A
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F6A#FFFFFF#000000##FFFFFF
##1F0F6A1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266C
Deuteranopia (green-blind)
#001F68
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f0f6a;
/* rgb */ color: rgb(31, 15, 106);
/* oklch */ color: oklch(27.2% 0.144 278.9);
Tailwind
colors: {
  custom: {
    50: '#685196',
    500: '#1f0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f6a;
$custom-light: #685196;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f6a",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 250.549,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2719,
    "c": 0.14398,
    "h": 278.9
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#1F0F6A
secondary
#8FA232
accent
#F236D1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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