#1F0946#1F0946

#1F0946 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.104 H 292.1°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#1F0946
RGBrgb(31, 9, 70)
HSLhsl(262, 77%, 15%)
HSVhsv(262, 87%, 27%)
CMYKcmyk(55.7%, 87.1%, 0%, 72.5%)
CIE-LABlab(8.38, 27.38, -33.55)
CIE-LCHlch(8.38, 43.30, 309.21°)
OKLaboklab(22.26% 0.0391 -0.0964)
OKLCHoklch(22.26% 0.104 292.1)
XYZxyz(1.7679, 0.9288, 5.8793)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0946 #304609
analogous
#091246 #1F0946 #3D0946
triadic
#1F0946 #461F09 #09461F
tetradic
#1F0946 #460912 #304609 #09463D
square
#1F0946 #460912 #304609 #09463D
split-complementary
#1F0946 #463D09 #124609
monochromatic
#0C031B #0C031B #1F0946 #37107C #4F17B2

Accessibility & contrast

On white

17.71
#1F0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0946 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0946
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0946#FFFFFF#000000##FFFFFF
##1F09461.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#121A27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0946;
/* rgb */ color: rgb(31, 9, 70);
/* oklch */ color: oklch(22.3% 0.104 292.1);
Tailwind
colors: {
  custom: {
    50: '#604b7a',
    500: '#1f0946',
    950: '#000000',
  },
}
SCSS
$custom: #1f0946;
$custom-light: #604b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0946",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 261.639,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22264,
    "c": 0.10398,
    "h": 292.1
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#1F0946
secondary
#628427
accent
#F434AF
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0946

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

Preview Lab → · Contrast checker → · Palette generator →

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