#1F0B4E#1F0B4E

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

Color values

HEX#1F0B4E
RGBrgb(31, 11, 78)
HSLhsl(258, 75%, 17%)
HSVhsv(258, 86%, 31%)
CMYKcmyk(60.3%, 85.9%, 0%, 69.4%)
CIE-LABlab(9.65, 28.85, -37.06)
CIE-LCHlch(9.65, 46.96, 307.91°)
OKLaboklab(23.41% 0.0345 -0.1066)
OKLCHoklch(23.41% 0.112 287.9)
XYZxyz(2.0595, 1.0806, 7.3063)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B4E #3A4E0B
analogous
#0B194E #1F0B4E #400B4E
triadic
#1F0B4E #4E1F0B #0B4E1F
tetradic
#1F0B4E #4E0B19 #3A4E0B #0B4E40
square
#1F0B4E #4E0B19 #3A4E0B #0B4E40
split-complementary
#1F0B4E #4E400B #194E0B
monochromatic
#0B041B #0B041B #1F0B4E #341384 #4A1AB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F0B4E#FFFFFF#000000##FFFFFF
##1F0B4E1.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)
#001C50
Deuteranopia (green-blind)
#00194D
Tritanopia (blue-blind)
#0B1E2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0b4e;
/* rgb */ color: rgb(31, 11, 78);
/* oklch */ color: oklch(23.4% 0.112 287.9);
Tailwind
colors: {
  custom: {
    50: '#624d80',
    500: '#1f0b4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b4e;
$custom-light: #624d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b4e",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 257.91,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23414,
    "c": 0.11208,
    "h": 287.9
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#1F0B4E
secondary
#6E8A2B
accent
#F236BA
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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