#1F0B56#1F0B56

#1F0B56 is a very dark, vivid violet. Relative luminance 0.012; OKLCH L 24.3% C 0.122 H 285.0°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0B56
RGBrgb(31, 11, 86)
HSLhsl(256, 77%, 19%)
HSVhsv(256, 87%, 34%)
CMYKcmyk(64%, 87.2%, 0%, 66.3%)
CIE-LABlab(10.58, 31.40, -41.01)
CIE-LCHlch(10.58, 51.65, 307.44°)
OKLaboklab(24.34% 0.0316 -0.1182)
OKLCHoklch(24.34% 0.122 285)
XYZxyz(2.3639, 1.2024, 8.9098)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B56 #42560B
analogous
#0B1D56 #1F0B56 #450B56
triadic
#1F0B56 #561F0B #0B561F
tetradic
#1F0B56 #560B1D #42560B #0B5645
square
#1F0B56 #560B1D #42560B #0B5645
split-complementary
#1F0B56 #56450B #1D560B
monochromatic
#0A031B #0B0420 #1F0B56 #33128C #4619C3

Accessibility & contrast

On white

16.93
#1F0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B56
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B56#FFFFFF#000000##FFFFFF
##1F0B561.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F58
Deuteranopia (green-blind)
#001A55
Tritanopia (blue-blind)
#012231
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0b56;
/* rgb */ color: rgb(31, 11, 86);
/* oklch */ color: oklch(24.3% 0.122 285.0);
Tailwind
colors: {
  custom: {
    50: '#634d87',
    500: '#1f0b56',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b56;
$custom-light: #634d87;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b56",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 256,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24337,
    "c": 0.12234,
    "h": 285
  },
  "luminance": 0.01203
}

Semantic roles & 50–950 ramp

primary
#1F0B56
secondary
#76912B
accent
#F434C1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06010B
muted
#7A777C

Preview Lab

Preview with #1F0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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