#1F0C46#1F0C46

#1F0C46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.100 H 291.2°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#1F0C46
RGBrgb(31, 12, 70)
HSLhsl(260, 71%, 16%)
HSVhsv(260, 83%, 27%)
CMYKcmyk(55.7%, 82.9%, 0%, 72.5%)
CIE-LABlab(8.96, 25.72, -32.61)
CIE-LCHlch(8.96, 41.53, 308.27°)
OKLaboklab(22.67% 0.0362 -0.0936)
OKLCHoklch(22.67% 0.1 291.2)
XYZxyz(1.8017, 0.9964, 5.8906)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C46 #33460C
analogous
#0C1646 #1F0C46 #3C0C46
triadic
#1F0C46 #461F0C #0C461F
tetradic
#1F0C46 #460C16 #33460C #0C463C
square
#1F0C46 #460C16 #33460C #0C463C
split-complementary
#1F0C46 #463C0C #16460C
monochromatic
#0C041A #0C041A #1F0C46 #36157A #4D1EAE

Accessibility & contrast

On white

17.51
#1F0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C46
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C46#FFFFFF#000000##FFFFFF
##1F0C461.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001845
Tritanopia (blue-blind)
#121C28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0c46;
/* rgb */ color: rgb(31, 12, 70);
/* oklch */ color: oklch(22.7% 0.100 291.2);
Tailwind
colors: {
  custom: {
    50: '#604d7a',
    500: '#1f0c46',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c46;
$custom-light: #604d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c46",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 259.655,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22669,
    "c": 0.10038,
    "h": 291.2
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#1F0C46
secondary
#66822C
accent
#ED3AB3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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