#1F0B4D#1F0B4D

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

Color values

HEX#1F0B4D
RGBrgb(31, 11, 77)
HSLhsl(258, 75%, 17%)
HSVhsv(258, 86%, 30%)
CMYKcmyk(59.7%, 85.7%, 0%, 69.8%)
CIE-LABlab(9.53, 28.53, -36.55)
CIE-LCHlch(9.53, 46.37, 307.98°)
OKLaboklab(23.3% 0.0349 -0.1051)
OKLCHoklch(23.3% 0.111 288.4)
XYZxyz(2.0239, 1.0664, 7.1189)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B4D #394D0B
analogous
#0B184D #1F0B4D #400B4D
triadic
#1F0B4D #4D1F0B #0B4D1F
tetradic
#1F0B4D #4D0B18 #394D0B #0B4D40
square
#1F0B4D #4D0B18 #394D0B #0B4D40
split-complementary
#1F0B4D #4D400B #184D0B
monochromatic
#0B041B #0B041B #1F0B4D #351383 #4A1AB8

Accessibility & contrast

On white

17.31
#1F0B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1F0B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0B4D
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B4D#FFFFFF#000000##FFFFFF
##1F0B4D1.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#0C1E2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0b4d;
/* rgb */ color: rgb(31, 11, 77);
/* oklch */ color: oklch(23.3% 0.111 288.4);
Tailwind
colors: {
  custom: {
    50: '#614d80',
    500: '#1f0b4d',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b4d;
$custom-light: #614d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b4d",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 258.182,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23301,
    "c": 0.11078,
    "h": 288.4
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#1F0B4D
secondary
#6C892B
accent
#F236B9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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