#1F0233#1F0233

#1F0233 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.092 H 306.9°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#1F0233
RGBrgb(31, 2, 51)
HSLhsl(276, 92%, 10%)
HSVhsv(276, 96%, 20%)
CMYKcmyk(39.2%, 96.1%, 0%, 80%)
CIE-LABlab(5.18, 24.61, -25.07)
CIE-LCHlch(5.18, 35.13, 314.47°)
OKLaboklab(19.13% 0.0552 -0.0735)
OKLCHoklch(19.13% 0.092 306.9)
XYZxyz(1.1842, 0.5738, 3.1797)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0233 #163302
analogous
#060233 #1F0233 #33022E
triadic
#1F0233 #331F02 #02331F
tetradic
#1F0233 #330602 #163302 #022E33
square
#1F0233 #330602 #163302 #022E33
split-complementary
#1F0233 #2E3302 #023306
monochromatic
#12011D #12011D #1F0233 #43046E #6707A9

Accessibility & contrast

On white

18.84
#1F0233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0233
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0233#FFFFFF#000000##FFFFFF
##1F02331.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001034
Deuteranopia (green-blind)
#001132
Tritanopia (blue-blind)
#1B0E1A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0233;
/* rgb */ color: rgb(31, 2, 51);
/* oklch */ color: oklch(19.1% 0.092 306.9);
Tailwind
colors: {
  custom: {
    50: '#5d466b',
    500: '#1f0233',
    950: '#000000',
  },
}
SCSS
$custom: #1f0233;
$custom-light: #5d466b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0233",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 275.51,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19125,
    "c": 0.09188,
    "h": 306.9
  },
  "luminance": 0.00574
}

Semantic roles & 50–950 ramp

primary
#1F0233
secondary
#40771A
accent
#FF2980
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0233

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

Preview Lab → · Contrast checker → · Palette generator →

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