#1F0F58#1F0F58

#1F0F58 is a dark, vivid violet. Relative luminance 0.013; OKLCH L 25.1% C 0.121 H 283.5°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#1F0F58
RGBrgb(31, 15, 88)
HSLhsl(253, 71%, 20%)
HSVhsv(253, 83%, 35%)
CMYKcmyk(64.8%, 83%, 0%, 65.5%)
CIE-LABlab(11.53, 29.95, -40.79)
CIE-LCHlch(11.53, 50.60, 306.29°)
OKLaboklab(25.07% 0.0281 -0.1176)
OKLCHoklch(25.07% 0.121 283.5)
XYZxyz(2.4968, 1.3374, 9.3572)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F58 #48580F
analogous
#0F2358 #1F0F58 #440F58
triadic
#1F0F58 #581F0F #0F581F
tetradic
#1F0F58 #580F23 #48580F #0F5844
square
#1F0F58 #580F23 #48580F #0F5844
split-complementary
#1F0F58 #58440F #23580F
monochromatic
#09041A #0D0624 #1F0F58 #31188C #4421C1

Accessibility & contrast

On white

16.57
#1F0F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F58
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F58#FFFFFF#000000##FFFFFF
##1F0F581.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001C57
Tritanopia (blue-blind)
#002433
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f0f58;
/* rgb */ color: rgb(31, 15, 88);
/* oklch */ color: oklch(25.1% 0.121 283.5);
Tailwind
colors: {
  custom: {
    50: '#635088',
    500: '#1f0f58',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f58;
$custom-light: #635088;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f58",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 253.151,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25074,
    "c": 0.1209,
    "h": 283.5
  },
  "luminance": 0.01338
}

Semantic roles & 50–950 ramp

primary
#1F0F58
secondary
#7D9231
accent
#EE3AC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F58

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

Preview Lab → · Contrast checker → · Palette generator →

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