#1F0F62#1F0F62

#1F0F62 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.134 H 280.7°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#1F0F62
RGBrgb(31, 15, 98)
HSLhsl(252, 73%, 22%)
HSVhsv(252, 85%, 38%)
CMYKcmyk(68.4%, 84.7%, 0%, 61.6%)
CIE-LABlab(12.70, 33.24, -45.57)
CIE-LCHlch(12.70, 56.41, 306.11°)
OKLaboklab(26.23% 0.0249 -0.1315)
OKLCHoklch(26.23% 0.134 280.7)
XYZxyz(2.9398, 1.5146, 11.6903)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F62 #52620F
analogous
#0F2962 #1F0F62 #490F62
triadic
#1F0F62 #621F0F #0F621F
tetradic
#1F0F62 #620F29 #52620F #0F6249
square
#1F0F62 #620F29 #52620F #0F6249
split-complementary
#1F0F62 #62490F #29620F
monochromatic
#08041B #0E072D #1F0F62 #301797 #411FCC

Accessibility & contrast

On white

16.12
#1F0F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F0F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F62
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F62#FFFFFF#000000##FFFFFF
##1F0F621.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001E61
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f0f62;
/* rgb */ color: rgb(31, 15, 98);
/* oklch */ color: oklch(26.2% 0.134 280.7);
Tailwind
colors: {
  custom: {
    50: '#665090',
    500: '#1f0f62',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f62;
$custom-light: #665090;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f62",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 98
  },
  "hsl": {
    "h": 251.566,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26234,
    "c": 0.13387,
    "h": 280.7
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#1F0F62
secondary
#879B32
accent
#F038CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #1F0F62

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

Preview Lab → · Contrast checker → · Palette generator →

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