#1F0C47#1F0C47

#1F0C47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.102 H 290.7°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#1F0C47
RGBrgb(31, 12, 71)
HSLhsl(259, 71%, 16%)
HSVhsv(259, 83%, 28%)
CMYKcmyk(56.3%, 83.1%, 0%, 72.2%)
CIE-LABlab(9.07, 26.05, -33.13)
CIE-LCHlch(9.07, 42.15, 308.18°)
OKLaboklab(22.78% 0.0359 -0.0952)
OKLCHoklch(22.78% 0.102 290.7)
XYZxyz(1.8336, 1.0091, 6.0582)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C47 #34470C
analogous
#0C1747 #1F0C47 #3D0C47
triadic
#1F0C47 #471F0C #0C471F
tetradic
#1F0C47 #470C17 #34470C #0C473D
square
#1F0C47 #470C17 #34470C #0C473D
split-complementary
#1F0C47 #473D0C #17470C
monochromatic
#0B041A #0B041A #1F0C47 #36157B #4D1EB0

Accessibility & contrast

On white

17.47
#1F0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C47
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C47#FFFFFF#000000##FFFFFF
##1F0C471.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#111C29
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0c47;
/* rgb */ color: rgb(31, 12, 71);
/* oklch */ color: oklch(22.8% 0.102 290.7);
Tailwind
colors: {
  custom: {
    50: '#604d7b',
    500: '#1f0c47',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c47;
$custom-light: #604d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c47",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 259.322,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22776,
    "c": 0.10172,
    "h": 290.7
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#1F0C47
secondary
#67832C
accent
#EE3AB4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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