#1F0F68#1F0F68

#1F0F68 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.141 H 279.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#1F0F68
RGBrgb(31, 15, 104)
HSLhsl(251, 75%, 23%)
HSVhsv(251, 86%, 41%)
CMYKcmyk(70.2%, 85.6%, 0%, 59.2%)
CIE-LABlab(13.43, 35.19, -48.35)
CIE-LCHlch(13.43, 59.80, 306.05°)
OKLaboklab(26.95% 0.0229 -0.1396)
OKLCHoklch(26.95% 0.141 279.3)
XYZxyz(3.2338, 1.6322, 13.2386)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F68 #58680F
analogous
#0F2B68 #1F0F68 #4B0F68
triadic
#1F0F68 #681F0F #0F681F
tetradic
#1F0F68 #680F2B #58680F #0F684B
square
#1F0F68 #680F2B #58680F #0F684B
split-complementary
#1F0F68 #684B0F #2B680F
monochromatic
#08041B #0F0733 #1F0F68 #2F179D #3F1ED3

Accessibility & contrast

On white

15.83
#1F0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F68
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F68#FFFFFF#000000##FFFFFF
##1F0F681.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#001F66
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f0f68;
/* rgb */ color: rgb(31, 15, 104);
/* oklch */ color: oklch(26.9% 0.141 279.3);
Tailwind
colors: {
  custom: {
    50: '#675194',
    500: '#1f0f68',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f68;
$custom-light: #675194;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f68",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 250.787,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26949,
    "c": 0.14147,
    "h": 279.3
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#1F0F68
secondary
#8DA132
accent
#F136D0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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