#1F0C4E#1F0C4E

#1F0C4E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.111 H 287.7°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#1F0C4E
RGBrgb(31, 12, 78)
HSLhsl(257, 73%, 18%)
HSVhsv(257, 85%, 31%)
CMYKcmyk(60.3%, 84.6%, 0%, 69.4%)
CIE-LABlab(9.83, 28.32, -36.75)
CIE-LCHlch(9.83, 46.40, 307.62°)
OKLaboklab(23.54% 0.0337 -0.1057)
OKLCHoklch(23.54% 0.111 287.7)
XYZxyz(2.0713, 1.1042, 7.3102)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C4E #3B4E0C
analogous
#0C1A4E #1F0C4E #400C4E
triadic
#1F0C4E #4E1F0C #0C4E1F
tetradic
#1F0C4E #4E0C1A #3B4E0C #0C4E40
square
#1F0C4E #4E0C1A #3B4E0C #0C4E40
split-complementary
#1F0C4E #4E400C #1A4E0C
monochromatic
#0B041B #0B041B #1F0C4E #341483 #491CB8

Accessibility & contrast

On white

17.20
#1F0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C4E
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C4E#FFFFFF#000000##FFFFFF
##1F0C4E1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#00194D
Tritanopia (blue-blind)
#0B1F2D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0c4e;
/* rgb */ color: rgb(31, 12, 78);
/* oklch */ color: oklch(23.5% 0.111 287.7);
Tailwind
colors: {
  custom: {
    50: '#614d80',
    500: '#1f0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c4e;
$custom-light: #614d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c4e",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 257.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23543,
    "c": 0.111,
    "h": 287.7
  },
  "luminance": 0.01104
}

Semantic roles & 50–950 ramp

primary
#1F0C4E
secondary
#6F8A2C
accent
#F038BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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