#1F0C51#1F0C51

#1F0C51 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.115 H 286.5°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#1F0C51
RGBrgb(31, 12, 81)
HSLhsl(257, 74%, 18%)
HSVhsv(257, 85%, 32%)
CMYKcmyk(61.7%, 85.2%, 0%, 68.2%)
CIE-LABlab(10.17, 29.29, -38.26)
CIE-LCHlch(10.17, 48.18, 307.44°)
OKLaboklab(23.88% 0.0327 -0.1102)
OKLCHoklch(23.88% 0.115 286.5)
XYZxyz(2.1813, 1.1482, 7.8897)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C51 #3E510C
analogous
#0C1B51 #1F0C51 #410C51
triadic
#1F0C51 #511F0C #0C511F
tetradic
#1F0C51 #510C1B #3E510C #0C5141
square
#1F0C51 #510C1B #3E510C #0C5141
split-complementary
#1F0C51 #51410C #1B510C
monochromatic
#0A041B #0B041C #1F0C51 #331486 #481CBC

Accessibility & contrast

On white

17.08
#1F0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C51
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C51#FFFFFF#000000##FFFFFF
##1F0C511.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001A50
Tritanopia (blue-blind)
#07202E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0c51;
/* rgb */ color: rgb(31, 12, 81);
/* oklch */ color: oklch(23.9% 0.115 286.5);
Tailwind
colors: {
  custom: {
    50: '#624d83',
    500: '#1f0c51',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c51;
$custom-light: #624d83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c51",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 256.522,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23882,
    "c": 0.11491,
    "h": 286.5
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#1F0C51
secondary
#728C2C
accent
#F137BE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06010B
muted
#7A777C

Preview Lab

Preview with #1F0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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