#1F1059#1F1059

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

Color values

HEX#1F1059
RGBrgb(31, 16, 89)
HSLhsl(252, 70%, 21%)
HSVhsv(252, 82%, 35%)
CMYKcmyk(65.2%, 82%, 0%, 65.1%)
CIE-LABlab(11.84, 29.72, -40.95)
CIE-LCHlch(11.84, 50.60, 305.97°)
OKLaboklab(25.32% 0.0271 -0.1181)
OKLCHoklch(25.32% 0.121 282.9)
XYZxyz(2.5530, 1.3830, 9.5817)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1059 #4A5910
analogous
#102559 #1F1059 #431059
triadic
#1F1059 #591F10 #10591F
tetradic
#1F1059 #591025 #4A5910 #105943
square
#1F1059 #591025 #4A5910 #105943
split-complementary
#1F1059 #594310 #255910
monochromatic
#09051A #0D0725 #1F1059 #31198D #4323C1

Accessibility & contrast

On white

16.45
#1F1059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1059
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1059#FFFFFF#000000##FFFFFF
##1F10591.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1059;
/* rgb */ color: rgb(31, 16, 89);
/* oklch */ color: oklch(25.3% 0.121 282.9);
Tailwind
colors: {
  custom: {
    50: '#635089',
    500: '#1f1059',
    950: '#000000',
  },
}
SCSS
$custom: #1f1059;
$custom-light: #635089;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1059",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 252.329,
    "s": 69.524,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25325,
    "c": 0.12114,
    "h": 282.9
  },
  "luminance": 0.01383
}

Semantic roles & 50–950 ramp

primary
#1F1059
secondary
#7F9233
accent
#EC3BC8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F1059

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

Preview Lab → · Contrast checker → · Palette generator →

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