#1F0232#1F0232

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

Color values

HEX#1F0232
RGBrgb(31, 2, 50)
HSLhsl(276, 92%, 10%)
HSVhsv(276, 96%, 20%)
CMYKcmyk(38%, 96%, 0%, 80.4%)
CIE-LABlab(5.10, 24.23, -24.45)
CIE-LCHlch(5.10, 34.43, 314.74°)
OKLaboklab(19.02% 0.0556 -0.0718)
OKLCHoklch(19.02% 0.091 307.7)
XYZxyz(1.1624, 0.5650, 3.0648)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0232 #153202
analogous
#070232 #1F0232 #32022D
triadic
#1F0232 #321F02 #02321F
tetradic
#1F0232 #320702 #153202 #022D32
square
#1F0232 #320702 #153202 #022D32
split-complementary
#1F0232 #2D3202 #023207
monochromatic
#12011D #12011D #1F0232 #43046D #6807A8

Accessibility & contrast

On white

18.87
#1F0232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0232
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0232#FFFFFF#000000##FFFFFF
##1F02321.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001033
Deuteranopia (green-blind)
#001131
Tritanopia (blue-blind)
#1C0D1A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0232;
/* rgb */ color: rgb(31, 2, 50);
/* oklch */ color: oklch(19.0% 0.091 307.7);
Tailwind
colors: {
  custom: {
    50: '#5d466a',
    500: '#1f0232',
    950: '#000000',
  },
}
SCSS
$custom: #1f0232;
$custom-light: #5d466a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0232",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 276.25,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1902,
    "c": 0.0908,
    "h": 307.7
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#1F0232
secondary
#3E7619
accent
#FF297E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0232

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

Preview Lab → · Contrast checker → · Palette generator →

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