#1F1044#1F1044

#1F1044 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.092 H 290.6°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#1F1044
RGBrgb(31, 16, 68)
HSLhsl(257, 62%, 16%)
HSVhsv(257, 76%, 27%)
CMYKcmyk(54.4%, 76.5%, 0%, 73.3%)
CIE-LABlab(9.63, 22.62, -30.10)
CIE-LCHlch(9.63, 37.65, 306.93°)
OKLaboklab(23.09% 0.0324 -0.0863)
OKLCHoklch(23.09% 0.092 290.6)
XYZxyz(1.7935, 1.0792, 5.5815)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1044 #354410
analogous
#101B44 #1F1044 #391044
triadic
#1F1044 #441F10 #10441F
tetradic
#1F1044 #44101B #354410 #104439
square
#1F1044 #44101B #354410 #104439
split-complementary
#1F1044 #443910 #1B4410
monochromatic
#0B0619 #0B0619 #1F1044 #361C76 #4C27A7

Accessibility & contrast

On white

17.27
#1F1044 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F1044 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1044
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1044#FFFFFF#000000##FFFFFF
##1F10441.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#001A43
Tritanopia (blue-blind)
#131D28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f1044;
/* rgb */ color: rgb(31, 16, 68);
/* oklch */ color: oklch(23.1% 0.092 290.6);
Tailwind
colors: {
  custom: {
    50: '#5f4f78',
    500: '#1f1044',
    950: '#000000',
  },
}
SCSS
$custom: #1f1044;
$custom-light: #5f4f78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1044",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 68
  },
  "hsl": {
    "h": 257.308,
    "s": 61.905,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23085,
    "c": 0.09216,
    "h": 290.6
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#1F1044
secondary
#687E32
accent
#E543B6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #1F1044

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

Preview Lab → · Contrast checker → · Palette generator →

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