#1F0B4A#1F0B4A

#1F0B4A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.107 H 289.6°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#1F0B4A
RGBrgb(31, 11, 74)
HSLhsl(259, 74%, 17%)
HSVhsv(259, 85%, 29%)
CMYKcmyk(58.1%, 85.1%, 0%, 71%)
CIE-LABlab(9.20, 27.57, -35.02)
CIE-LCHlch(9.20, 44.57, 308.22°)
OKLaboklab(22.97% 0.0359 -0.1007)
OKLCHoklch(22.97% 0.107 289.6)
XYZxyz(1.9204, 1.0250, 6.5739)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B4A #364A0B
analogous
#0B164A #1F0B4A #3F0B4A
triadic
#1F0B4A #4A1F0B #0B4A1F
tetradic
#1F0B4A #4A0B16 #364A0B #0B4A3F
square
#1F0B4A #4A0B16 #364A0B #0B4A3F
split-complementary
#1F0B4A #4A3F0B #164A0B
monochromatic
#0B041B #0B041B #1F0B4A #35137F #4C1BB5

Accessibility & contrast

On white

17.43
#1F0B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0B4A
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B4A#FFFFFF#000000##FFFFFF
##1F0B4A1.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#0F1D2A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0b4a;
/* rgb */ color: rgb(31, 11, 74);
/* oklch */ color: oklch(23.0% 0.107 289.6);
Tailwind
colors: {
  custom: {
    50: '#614c7d',
    500: '#1f0b4a',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b4a;
$custom-light: #614c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b4a",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 259.048,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22966,
    "c": 0.10688,
    "h": 289.6
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#1F0B4A
secondary
#69862B
accent
#F137B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F0B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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