#1F0346#1F0346

#1F0346 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.111 H 293.8°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#1F0346
RGBrgb(31, 3, 70)
HSLhsl(265, 92%, 14%)
HSVhsv(265, 96%, 27%)
CMYKcmyk(55.7%, 95.7%, 0%, 72.5%)
CIE-LABlab(7.21, 30.77, -35.48)
CIE-LCHlch(7.21, 46.96, 310.94°)
OKLaboklab(21.44% 0.045 -0.102)
OKLCHoklch(21.44% 0.111 293.8)
XYZxyz(1.7028, 0.7986, 5.8576)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0346 #2A4603
analogous
#030846 #1F0346 #410346
triadic
#1F0346 #461F03 #03461F
tetradic
#1F0346 #460308 #2A4603 #034641
square
#1F0346 #460308 #2A4603 #034641
split-complementary
#1F0346 #464103 #084603
monochromatic
#0D011D #0D011D #1F0346 #390681 #5308BB

Accessibility & contrast

On white

18.11
#1F0346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F0346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0346
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0346#FFFFFF#000000##FFFFFF
##1F03461.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#121726
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f0346;
/* rgb */ color: rgb(31, 3, 70);
/* oklch */ color: oklch(21.4% 0.111 293.8);
Tailwind
colors: {
  custom: {
    50: '#61487a',
    500: '#1f0346',
    950: '#000000',
  },
}
SCSS
$custom: #1f0346;
$custom-light: #61487a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0346",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 265.075,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2144,
    "c": 0.11149,
    "h": 293.8
  },
  "luminance": 0.00799
}

Semantic roles & 50–950 ramp

primary
#1F0346
secondary
#5B871D
accent
#FF29A5
background
#F6F4F7
surface
#EBE6EE
border
#C6C2C9
text
#050009
muted
#7A777B

Preview Lab

Preview with #1F0346

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

Preview Lab → · Contrast checker → · Palette generator →

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