#1F0231#1F0231

#1F0231 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.090 H 308.6°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#1F0231
RGBrgb(31, 2, 49)
HSLhsl(277, 92%, 10%)
HSVhsv(277, 96%, 19%)
CMYKcmyk(36.7%, 95.9%, 0%, 80.8%)
CIE-LABlab(5.03, 23.85, -23.83)
CIE-LCHlch(5.03, 33.72, 315.03°)
OKLaboklab(18.92% 0.056 -0.0701)
OKLCHoklch(18.92% 0.09 308.6)
XYZxyz(1.1410, 0.5565, 2.9524)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0231 #143102
analogous
#070231 #1F0231 #31022C
triadic
#1F0231 #311F02 #02311F
tetradic
#1F0231 #310702 #143102 #022C31
square
#1F0231 #310702 #143102 #022C31
split-complementary
#1F0231 #2C3102 #023107
monochromatic
#13011D #13011D #1F0231 #44046C #6907A7

Accessibility & contrast

On white

18.90
#1F0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0231
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0231#FFFFFF#000000##FFFFFF
##1F02311.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#1C0D19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0231;
/* rgb */ color: rgb(31, 2, 49);
/* oklch */ color: oklch(18.9% 0.090 308.6);
Tailwind
colors: {
  custom: {
    50: '#5d4669',
    500: '#1f0231',
    950: '#000000',
  },
}
SCSS
$custom: #1f0231;
$custom-light: #5d4669;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0231",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 277.021,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.18915,
    "c": 0.08973,
    "h": 308.6
  },
  "luminance": 0.00556
}

Semantic roles & 50–950 ramp

primary
#1F0231
secondary
#3D7519
accent
#FF297B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0231

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

Preview Lab → · Contrast checker → · Palette generator →

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