#1F0F52#1F0F52

#1F0F52 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.4% C 0.113 H 285.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#1F0F52
RGBrgb(31, 15, 82)
HSLhsl(254, 69%, 19%)
HSVhsv(254, 82%, 32%)
CMYKcmyk(62.2%, 81.7%, 0%, 67.8%)
CIE-LABlab(10.86, 27.95, -37.80)
CIE-LCHlch(10.86, 47.02, 306.48°)
OKLaboklab(24.4% 0.03 -0.1089)
OKLCHoklch(24.4% 0.113 285.4)
XYZxyz(2.2584, 1.2420, 8.1017)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F52 #42520F
analogous
#0F2152 #1F0F52 #410F52
triadic
#1F0F52 #521F0F #0F521F
tetradic
#1F0F52 #520F21 #42520F #0F5241
square
#1F0F52 #520F21 #42520F #0F5241
split-complementary
#1F0F52 #52410F #21520F
monochromatic
#0A051A #0B061E #1F0F52 #331886 #4622B9

Accessibility & contrast

On white

16.82
#1F0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1F0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F52
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F52#FFFFFF#000000##FFFFFF
##1F0F521.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001B51
Tritanopia (blue-blind)
#062230
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0f52;
/* rgb */ color: rgb(31, 15, 82);
/* oklch */ color: oklch(24.4% 0.113 285.4);
Tailwind
colors: {
  custom: {
    50: '#624f83',
    500: '#1f0f52',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f52;
$custom-light: #624f83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f52",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 254.328,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24402,
    "c": 0.11291,
    "h": 285.4
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#1F0F52
secondary
#768C31
accent
#EC3CC2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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