#1F033A#1F033A

#1F033A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.098 H 301.2°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#1F033A
RGBrgb(31, 3, 58)
HSLhsl(271, 90%, 12%)
HSVhsv(271, 95%, 23%)
CMYKcmyk(46.6%, 94.8%, 0%, 77.3%)
CIE-LABlab(5.98, 26.69, -28.91)
CIE-LCHlch(5.98, 39.34, 312.71°)
OKLaboklab(20.06% 0.0506 -0.0837)
OKLCHoklch(20.06% 0.098 301.2)
XYZxyz(1.3612, 0.6619, 4.0582)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F033A #1E3A03
analogous
#03033A #1F033A #3A033A
triadic
#1F033A #3A1F03 #033A1F
tetradic
#1F033A #3A0303 #1E3A03 #033A3A
square
#1F033A #3A0303 #1E3A03 #033A3A
split-complementary
#1F033A #3A3A03 #033A03
monochromatic
#10021D #10021D #1F033A #3E0674 #5D09AE

Accessibility & contrast

On white

18.54
#1F033A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F033A
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F033A#FFFFFF#000000##FFFFFF
##1F033A1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f033a;
/* rgb */ color: rgb(31, 3, 58);
/* oklch */ color: oklch(20.1% 0.098 301.2);
Tailwind
colors: {
  custom: {
    50: '#5e4771',
    500: '#1f033a',
    950: '#000000',
  },
}
SCSS
$custom: #1f033a;
$custom-light: #5e4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1f033a",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 58
  },
  "hsl": {
    "h": 270.545,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20056,
    "c": 0.09781,
    "h": 301.2
  },
  "luminance": 0.00662
}

Semantic roles & 50–950 ramp

primary
#1F033A
secondary
#4C7D1C
accent
#FF2992
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F033A

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

Preview Lab → · Contrast checker → · Palette generator →

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