#1F0F56#1F0F56

#1F0F56 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.118 H 284.1°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#1F0F56
RGBrgb(31, 15, 86)
HSLhsl(254, 70%, 20%)
HSVhsv(254, 83%, 34%)
CMYKcmyk(64%, 82.6%, 0%, 66.3%)
CIE-LABlab(11.31, 29.29, -39.80)
CIE-LCHlch(11.31, 49.42, 306.35°)
OKLaboklab(24.85% 0.0288 -0.1147)
OKLCHoklch(24.85% 0.118 284.1)
XYZxyz(2.4151, 1.3047, 8.9269)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F56 #46560F
analogous
#0F2356 #1F0F56 #430F56
triadic
#1F0F56 #561F0F #0F561F
tetradic
#1F0F56 #560F23 #46560F #0F5643
square
#1F0F56 #560F23 #46560F #0F5643
split-complementary
#1F0F56 #56430F #23560F
monochromatic
#09051A #0C0622 #1F0F56 #32188A #4521BE

Accessibility & contrast

On white

16.65
#1F0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1F0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F56
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F56#FFFFFF#000000##FFFFFF
##1F0F561.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001C55
Tritanopia (blue-blind)
#012332
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0f56;
/* rgb */ color: rgb(31, 15, 86);
/* oklch */ color: oklch(24.8% 0.118 284.1);
Tailwind
colors: {
  custom: {
    50: '#634f86',
    500: '#1f0f56',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f56;
$custom-light: #634f86;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f56",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 253.521,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24848,
    "c": 0.11825,
    "h": 284.1
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#1F0F56
secondary
#7A9031
accent
#ED3BC5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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