#1F043A#1F043A

#1F043A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.096 H 300.8°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#1F043A
RGBrgb(31, 4, 58)
HSLhsl(270, 87%, 12%)
HSVhsv(270, 93%, 23%)
CMYKcmyk(46.6%, 93.1%, 0%, 77.3%)
CIE-LABlab(6.17, 26.16, -28.59)
CIE-LCHlch(6.17, 38.76, 312.46°)
OKLaboklab(20.22% 0.0493 -0.0826)
OKLCHoklch(20.22% 0.096 300.8)
XYZxyz(1.3720, 0.6836, 4.0618)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F043A #1F3A04
analogous
#04043A #1F043A #3A043A
triadic
#1F043A #3A1F04 #043A1F
tetradic
#1F043A #3A0404 #1F3A04 #043A3A
square
#1F043A #3A0404 #1F3A04 #043A3A
split-complementary
#1F043A #3A3A04 #043A04
monochromatic
#0F021D #0F021D #1F043A #3E0873 #5C0CAD

Accessibility & contrast

On white

18.47
#1F043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F043A
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F043A#FFFFFF#000000##FFFFFF
##1F043A1.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#19131F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f043a;
/* rgb */ color: rgb(31, 4, 58);
/* oklch */ color: oklch(20.2% 0.096 300.8);
Tailwind
colors: {
  custom: {
    50: '#5e4871',
    500: '#1f043a',
    950: '#000000',
  },
}
SCSS
$custom: #1f043a;
$custom-light: #5e4871;
$custom-dark: #000000;
JSON
{
  "hex": "#1f043a",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 270,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20219,
    "c": 0.09614,
    "h": 300.8
  },
  "luminance": 0.00684
}

Semantic roles & 50–950 ramp

primary
#1F043A
secondary
#4D7C1E
accent
#FD2B94
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F043A

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

Preview Lab → · Contrast checker → · Palette generator →

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