#1F002B#1F002B

#1F002B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.9% C 0.088 H 314.9°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#1F002B
RGBrgb(31, 0, 43)
HSLhsl(283, 100%, 8%)
HSVhsv(283, 100%, 17%)
CMYKcmyk(27.9%, 100%, 0%, 83.1%)
CIE-LABlab(4.21, 22.50, -20.62)
CIE-LCHlch(4.21, 30.52, 317.49°)
OKLaboklab(17.91% 0.0623 -0.0625)
OKLCHoklch(17.91% 0.088 314.9)
XYZxyz(1.0010, 0.4658, 2.3222)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F002B #0C2B00
analogous
#09002B #1F002B #2B0021
triadic
#1F002B #2B1F00 #002B1F
tetradic
#1F002B #2B0900 #0C2B00 #00212B
square
#1F002B #2B0900 #0C2B00 #00212B
split-complementary
#1F002B #212B00 #002B09
monochromatic
#16001F #16001F #1F002B #4B0068 #7700A5

Accessibility & contrast

On white

19.21
#1F002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1F002B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F002B
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F002B#FFFFFF#000000##FFFFFF
##1F002B1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#1E0815
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1f002b;
/* rgb */ color: rgb(31, 0, 43);
/* oklch */ color: oklch(17.9% 0.088 314.9);
Tailwind
colors: {
  custom: {
    50: '#5c4664',
    500: '#1f002b',
    950: '#000000',
  },
}
SCSS
$custom: #1f002b;
$custom-light: #5c4664;
$custom-dark: #000000;
JSON
{
  "hex": "#1f002b",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 283.256,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.17908,
    "c": 0.08825,
    "h": 314.9
  },
  "luminance": 0.00466
}

Semantic roles & 50–950 ramp

primary
#1F002B
secondary
#2F7314
accent
#FF2965
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F002B

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

Preview Lab → · Contrast checker → · Palette generator →

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