#1F0C44#1F0C44

#1F0C44 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.098 H 292.1°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#1F0C44
RGBrgb(31, 12, 68)
HSLhsl(260, 70%, 16%)
HSVhsv(260, 82%, 27%)
CMYKcmyk(54.4%, 82.4%, 0%, 73.3%)
CIE-LABlab(8.75, 25.08, -31.54)
CIE-LCHlch(8.75, 40.30, 308.49°)
OKLaboklab(22.46% 0.0368 -0.0905)
OKLCHoklch(22.46% 0.098 292.1)
XYZxyz(1.7396, 0.9715, 5.5636)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C44 #31440C
analogous
#0C1544 #1F0C44 #3B0C44
triadic
#1F0C44 #441F0C #0C441F
tetradic
#1F0C44 #440C15 #31440C #0C443B
square
#1F0C44 #440C15 #31440C #0C443B
split-complementary
#1F0C44 #443B0C #15440C
monochromatic
#0C051A #0C051A #1F0C44 #371578 #4E1EAC

Accessibility & contrast

On white

17.58
#1F0C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C44
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C44#FFFFFF#000000##FFFFFF
##1F0C441.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001843
Tritanopia (blue-blind)
#131B27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0c44;
/* rgb */ color: rgb(31, 12, 68);
/* oklch */ color: oklch(22.5% 0.098 292.1);
Tailwind
colors: {
  custom: {
    50: '#5f4d78',
    500: '#1f0c44',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c44;
$custom-light: #5f4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c44",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 260.357,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22457,
    "c": 0.09769,
    "h": 292.1
  },
  "luminance": 0.00972
}

Semantic roles & 50–950 ramp

primary
#1F0C44
secondary
#63802C
accent
#ED3BB0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0C44

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

Preview Lab → · Contrast checker → · Palette generator →

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