#1F043B#1F043B

#1F043B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.097 H 300.1°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#1F043B
RGBrgb(31, 4, 59)
HSLhsl(269, 87%, 12%)
HSVhsv(269, 93%, 23%)
CMYKcmyk(47.5%, 93.2%, 0%, 76.9%)
CIE-LABlab(6.27, 26.52, -29.17)
CIE-LCHlch(6.27, 39.42, 312.27°)
OKLaboklab(20.33% 0.0489 -0.0842)
OKLCHoklch(20.33% 0.097 300.1)
XYZxyz(1.3977, 0.6939, 4.1971)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F043B #203B04
analogous
#04043B #1F043B #3B043B
triadic
#1F043B #3B1F04 #043B1F
tetradic
#1F043B #3B0404 #203B04 #043B3B
square
#1F043B #3B0404 #203B04 #043B3B
split-complementary
#1F043B #3B3B04 #043B04
monochromatic
#0F021D #0F021D #1F043B #3D0874 #5B0CAE

Accessibility & contrast

On white

18.44
#1F043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F043B
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F043B#FFFFFF#000000##FFFFFF
##1F043B1.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#181320
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f043b;
/* rgb */ color: rgb(31, 4, 59);
/* oklch */ color: oklch(20.3% 0.097 300.1);
Tailwind
colors: {
  custom: {
    50: '#5e4871',
    500: '#1f043b',
    950: '#000000',
  },
}
SCSS
$custom: #1f043b;
$custom-light: #5e4871;
$custom-dark: #000000;
JSON
{
  "hex": "#1f043b",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 269.455,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20328,
    "c": 0.09731,
    "h": 300.1
  },
  "luminance": 0.00694
}

Semantic roles & 50–950 ramp

primary
#1F043B
secondary
#4E7D1E
accent
#FD2A96
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #1F043B

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

Preview Lab → · Contrast checker → · Palette generator →

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