#1F043F#1F043F

#1F043F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.8% C 0.102 H 297.5°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#1F043F
RGBrgb(31, 4, 63)
HSLhsl(267, 88%, 13%)
HSVhsv(267, 94%, 25%)
CMYKcmyk(50.8%, 93.7%, 0%, 75.3%)
CIE-LABlab(6.66, 27.91, -31.41)
CIE-LCHlch(6.66, 42.02, 311.62°)
OKLaboklab(20.77% 0.0471 -0.0904)
OKLCHoklch(20.77% 0.102 297.5)
XYZxyz(1.5055, 0.7370, 4.7646)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F043F #243F04
analogous
#04063F #1F043F #3C043F
triadic
#1F043F #3F1F04 #043F1F
tetradic
#1F043F #3F0406 #243F04 #043F3C
square
#1F043F #3F0406 #243F04 #043F3C
split-complementary
#1F043F #3F3C04 #063F04
monochromatic
#0E021D #0E021D #1F043F #3B0879 #580BB2

Accessibility & contrast

On white

18.30
#1F043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F043F
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F043F#FFFFFF#000000##FFFFFF
##1F043F1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#161522
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f043f;
/* rgb */ color: rgb(31, 4, 63);
/* oklch */ color: oklch(20.8% 0.102 297.5);
Tailwind
colors: {
  custom: {
    50: '#5f4875',
    500: '#1f043f',
    950: '#000000',
  },
}
SCSS
$custom: #1f043f;
$custom-light: #5f4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1f043f",
  "rgb": {
    "r": 31,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 267.458,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20773,
    "c": 0.10199,
    "h": 297.5
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#1F043F
secondary
#54801E
accent
#FE2A9D
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1F043F

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

Preview Lab → · Contrast checker → · Palette generator →

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