#1F0F54#1F0F54

#1F0F54 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.116 H 284.7°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#1F0F54
RGBrgb(31, 15, 84)
HSLhsl(254, 70%, 19%)
HSVhsv(254, 82%, 33%)
CMYKcmyk(63.1%, 82.1%, 0%, 67.1%)
CIE-LABlab(11.08, 28.62, -38.81)
CIE-LCHlch(11.08, 48.22, 306.41°)
OKLaboklab(24.62% 0.0294 -0.1118)
OKLCHoklch(24.62% 0.116 284.7)
XYZxyz(2.3356, 1.2729, 8.5084)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F54 #44540F
analogous
#0F2254 #1F0F54 #420F54
triadic
#1F0F54 #541F0F #0F541F
tetradic
#1F0F54 #540F22 #44540F #0F5442
square
#1F0F54 #540F22 #44540F #0F5442
split-complementary
#1F0F54 #54420F #22540F
monochromatic
#0A051A #0C0620 #1F0F54 #321888 #4522BC

Accessibility & contrast

On white

16.74
#1F0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F54
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F54#FFFFFF#000000##FFFFFF
##1F0F541.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002056
Deuteranopia (green-blind)
#001B53
Tritanopia (blue-blind)
#032331
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0f54;
/* rgb */ color: rgb(31, 15, 84);
/* oklch */ color: oklch(24.6% 0.116 284.7);
Tailwind
colors: {
  custom: {
    50: '#624f85',
    500: '#1f0f54',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f54;
$custom-light: #624f85;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f54",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 253.913,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24624,
    "c": 0.11559,
    "h": 284.7
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#1F0F54
secondary
#788E31
accent
#ED3BC3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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