#1F0F5A#1F0F5A

#1F0F5A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.3% C 0.124 H 282.9°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#1F0F5A
RGBrgb(31, 15, 90)
HSLhsl(253, 71%, 21%)
HSVhsv(253, 83%, 35%)
CMYKcmyk(65.6%, 83.3%, 0%, 64.7%)
CIE-LABlab(11.76, 30.61, -41.76)
CIE-LCHlch(11.76, 51.78, 306.24°)
OKLaboklab(25.3% 0.0275 -0.1204)
OKLCHoklch(25.3% 0.124 282.9)
XYZxyz(2.5808, 1.3710, 9.7995)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F5A #4A5A0F
analogous
#0F245A #1F0F5A #440F5A
triadic
#1F0F5A #5A1F0F #0F5A1F
tetradic
#1F0F5A #5A0F24 #4A5A0F #0F5A44
square
#1F0F5A #5A0F24 #4A5A0F #0F5A44
split-complementary
#1F0F5A #5A440F #245A0F
monochromatic
#09041A #0D0626 #1F0F5A #31188E #4320C3

Accessibility & contrast

On white

16.48
#1F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F5A
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F5A#FFFFFF#000000##FFFFFF
##1F0F5A1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215C
Deuteranopia (green-blind)
#001C59
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0f5a;
/* rgb */ color: rgb(31, 15, 90);
/* oklch */ color: oklch(25.3% 0.124 282.9);
Tailwind
colors: {
  custom: {
    50: '#64508a',
    500: '#1f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f5a;
$custom-light: #64508a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f5a",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 252.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25302,
    "c": 0.12352,
    "h": 282.9
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#1F0F5A
secondary
#7F9431
accent
#EE3AC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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