#1F0330#1F0330

#1F0330 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.087 H 309.1°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#1F0330
RGBrgb(31, 3, 48)
HSLhsl(277, 88%, 10%)
HSVhsv(277, 94%, 19%)
CMYKcmyk(35.4%, 93.8%, 0%, 81.2%)
CIE-LABlab(5.15, 23.00, -22.89)
CIE-LCHlch(5.15, 32.45, 315.13°)
OKLaboklab(19% 0.0546 -0.0672)
OKLCHoklch(19% 0.087 309.1)
XYZxyz(1.1310, 0.5699, 2.8461)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0330 #143003
analogous
#080330 #1F0330 #30032B
triadic
#1F0330 #301F03 #03301F
tetradic
#1F0330 #300803 #143003 #032B30
square
#1F0330 #300803 #143003 #032B30
split-complementary
#1F0330 #2B3003 #033008
monochromatic
#13021D #13021D #1F0330 #44076A #690AA3

Accessibility & contrast

On white

18.85
#1F0330 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F0330 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0330
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0330#FFFFFF#000000##FFFFFF
##1F03301.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001031
Deuteranopia (green-blind)
#00122F
Tritanopia (blue-blind)
#1C0D19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0330;
/* rgb */ color: rgb(31, 3, 48);
/* oklch */ color: oklch(19.0% 0.087 309.1);
Tailwind
colors: {
  custom: {
    50: '#5c4769',
    500: '#1f0330',
    950: '#000000',
  },
}
SCSS
$custom: #1f0330;
$custom-light: #5c4769;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0330",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 48
  },
  "hsl": {
    "h": 277.333,
    "s": 88.235,
    "l": 10
  },
  "oklch": {
    "l": 0.18997,
    "c": 0.08654,
    "h": 309.1
  },
  "luminance": 0.0057
}

Semantic roles & 50–950 ramp

primary
#1F0330
secondary
#3D731B
accent
#FE297A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0330

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

Preview Lab → · Contrast checker → · Palette generator →

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