#1F0C55#1F0C55

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

Color values

HEX#1F0C55
RGBrgb(31, 12, 85)
HSLhsl(256, 75%, 19%)
HSVhsv(256, 86%, 33%)
CMYKcmyk(63.5%, 85.9%, 0%, 66.7%)
CIE-LABlab(10.63, 30.58, -40.24)
CIE-LCHlch(10.63, 50.54, 307.23°)
OKLaboklab(24.34% 0.0313 -0.1159)
OKLCHoklch(24.34% 0.12 285.1)
XYZxyz(2.3357, 1.2100, 8.7030)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C55 #42550C
analogous
#0C1E55 #1F0C55 #440C55
triadic
#1F0C55 #551F0C #0C551F
tetradic
#1F0C55 #550C1E #42550C #0C5544
square
#1F0C55 #550C1E #42550C #0C5544
split-complementary
#1F0C55 #55440C #1E550C
monochromatic
#0A041B #0B041F #1F0C55 #33148B #461BC0

Accessibility & contrast

On white

16.91
#1F0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C55
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C55#FFFFFF#000000##FFFFFF
##1F0C551.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F57
Deuteranopia (green-blind)
#001A54
Tritanopia (blue-blind)
#022231
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0c55;
/* rgb */ color: rgb(31, 12, 85);
/* oklch */ color: oklch(24.3% 0.120 285.1);
Tailwind
colors: {
  custom: {
    50: '#634e86',
    500: '#1f0c55',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c55;
$custom-light: #634e86;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c55",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 255.616,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24341,
    "c": 0.12009,
    "h": 285.1
  },
  "luminance": 0.0121
}

Semantic roles & 50–950 ramp

primary
#1F0C55
secondary
#76902D
accent
#F236C1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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