#1F0239#1F0239

#1F0239 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.098 H 302.3°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#1F0239
RGBrgb(31, 2, 57)
HSLhsl(272, 93%, 12%)
HSVhsv(272, 96%, 22%)
CMYKcmyk(45.6%, 96.5%, 0%, 77.6%)
CIE-LABlab(5.69, 26.84, -28.65)
CIE-LCHlch(5.69, 39.26, 313.13°)
OKLaboklab(19.78% 0.0525 -0.0832)
OKLCHoklch(19.78% 0.098 302.3)
XYZxyz(1.3251, 0.6301, 3.9219)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0239 #1C3902
analogous
#030239 #1F0239 #390238
triadic
#1F0239 #391F02 #02391F
tetradic
#1F0239 #390302 #1C3902 #023839
square
#1F0239 #390302 #1C3902 #023839
split-complementary
#1F0239 #383902 #023903
monochromatic
#10011E #10011E #1F0239 #3F0474 #5F06AF

Accessibility & contrast

On white

18.65
#1F0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0239
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0239#FFFFFF#000000##FFFFFF
##1F02391.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#19111E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0239;
/* rgb */ color: rgb(31, 2, 57);
/* oklch */ color: oklch(19.8% 0.098 302.3);
Tailwind
colors: {
  custom: {
    50: '#5e4770',
    500: '#1f0239',
    950: '#000000',
  },
}
SCSS
$custom: #1f0239;
$custom-light: #5e4770;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0239",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 271.636,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19779,
    "c": 0.09843,
    "h": 302.3
  },
  "luminance": 0.0063
}

Semantic roles & 50–950 ramp

primary
#1F0239
secondary
#497D1A
accent
#FF298E
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0239

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

Preview Lab → · Contrast checker → · Palette generator →

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