#1F0F66#1F0F66

#1F0F66 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.139 H 279.8°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0F66
RGBrgb(31, 15, 102)
HSLhsl(251, 74%, 23%)
HSVhsv(251, 85%, 40%)
CMYKcmyk(69.6%, 85.3%, 0%, 60%)
CIE-LABlab(13.18, 34.54, -47.43)
CIE-LCHlch(13.18, 58.68, 306.06°)
OKLaboklab(26.71% 0.0236 -0.1369)
OKLCHoklch(26.71% 0.139 279.8)
XYZxyz(3.1334, 1.5920, 12.7100)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F66 #56660F
analogous
#0F2B66 #1F0F66 #4A0F66
triadic
#1F0F66 #661F0F #0F661F
tetradic
#1F0F66 #660F2B #56660F #0F664A
square
#1F0F66 #660F2B #56660F #0F664A
split-complementary
#1F0F66 #664A0F #2B660F
monochromatic
#08041B #0F0731 #1F0F66 #2F179B #3F1FD1

Accessibility & contrast

On white

15.93
#1F0F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F0F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F66
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F66#FFFFFF#000000##FFFFFF
##1F0F661.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002568
Deuteranopia (green-blind)
#001F64
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f0f66;
/* rgb */ color: rgb(31, 15, 102);
/* oklch */ color: oklch(26.7% 0.139 279.8);
Tailwind
colors: {
  custom: {
    50: '#675193',
    500: '#1f0f66',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f66;
$custom-light: #675193;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f66",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 102
  },
  "hsl": {
    "h": 251.034,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26709,
    "c": 0.13895,
    "h": 279.8
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#1F0F66
secondary
#8B9F32
accent
#F137CF
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0F66

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

Preview Lab → · Contrast checker → · Palette generator →

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