#1F0F5B#1F0F5B

#1F0F5B is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.4% C 0.125 H 282.6°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#1F0F5B
RGBrgb(31, 15, 91)
HSLhsl(253, 72%, 21%)
HSVhsv(253, 84%, 36%)
CMYKcmyk(65.9%, 83.5%, 0%, 64.3%)
CIE-LABlab(11.88, 30.94, -42.25)
CIE-LCHlch(11.88, 52.37, 306.22°)
OKLaboklab(25.42% 0.0272 -0.1218)
OKLCHoklch(25.42% 0.125 282.6)
XYZxyz(2.6236, 1.3881, 10.0252)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F5B #4B5B0F
analogous
#0F255B #1F0F5B #450F5B
triadic
#1F0F5B #5B1F0F #0F5B1F
tetradic
#1F0F5B #5B0F25 #4B5B0F #0F5B45
square
#1F0F5B #5B0F25 #4B5B0F #0F5B45
split-complementary
#1F0F5B #5B450F #255B0F
monochromatic
#09041A #0D0626 #1F0F5B #311890 #4320C4

Accessibility & contrast

On white

16.44
#1F0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F0F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F5B
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F5B#FFFFFF#000000##FFFFFF
##1F0F5B1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001D5A
Tritanopia (blue-blind)
#002535
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0f5b;
/* rgb */ color: rgb(31, 15, 91);
/* oklch */ color: oklch(25.4% 0.125 282.6);
Tailwind
colors: {
  custom: {
    50: '#64508a',
    500: '#1f0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f5b;
$custom-light: #64508a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f5b",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 252.632,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25417,
    "c": 0.12483,
    "h": 282.6
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#1F0F5B
secondary
#809531
accent
#EE39C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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