#1F0E54#1F0E54

#1F0E54 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.5% C 0.117 H 285.0°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#1F0E54
RGBrgb(31, 14, 84)
HSLhsl(255, 71%, 19%)
HSVhsv(255, 83%, 33%)
CMYKcmyk(63.1%, 83.3%, 0%, 67.1%)
CIE-LABlab(10.89, 29.19, -39.13)
CIE-LCHlch(10.89, 48.82, 306.72°)
OKLaboklab(24.49% 0.0302 -0.1127)
OKLCHoklch(24.49% 0.117 285)
XYZxyz(2.3219, 1.2453, 8.5038)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E54 #43540E
analogous
#0E2054 #1F0E54 #420E54
triadic
#1F0E54 #541F0E #0E541F
tetradic
#1F0E54 #540E20 #43540E #0E5442
square
#1F0E54 #540E20 #43540E #0E5442
split-complementary
#1F0E54 #54420E #20540E
monochromatic
#0A041A #0C0520 #1F0E54 #321788 #461FBD

Accessibility & contrast

On white

16.81
#1F0E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E54
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E54#FFFFFF#000000##FFFFFF
##1F0E541.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F56
Deuteranopia (green-blind)
#001B53
Tritanopia (blue-blind)
#032230
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0e54;
/* rgb */ color: rgb(31, 14, 84);
/* oklch */ color: oklch(24.5% 0.117 285.0);
Tailwind
colors: {
  custom: {
    50: '#634f85',
    500: '#1f0e54',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e54;
$custom-light: #634f85;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e54",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 254.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24485,
    "c": 0.11669,
    "h": 285
  },
  "luminance": 0.01245
}

Semantic roles & 50–950 ramp

primary
#1F0E54
secondary
#778E2F
accent
#EE3AC2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0E54

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

Preview Lab → · Contrast checker → · Palette generator →

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