#1F0C48#1F0C48

#1F0C48 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.103 H 290.2°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#1F0C48
RGBrgb(31, 12, 72)
HSLhsl(259, 71%, 16%)
HSVhsv(259, 83%, 28%)
CMYKcmyk(56.9%, 83.3%, 0%, 71.8%)
CIE-LABlab(9.17, 26.38, -33.66)
CIE-LCHlch(9.17, 42.76, 308.08°)
OKLaboklab(22.88% 0.0356 -0.0967)
OKLCHoklch(22.88% 0.103 290.2)
XYZxyz(1.8659, 1.0220, 6.2286)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C48 #35480C
analogous
#0C1748 #1F0C48 #3D0C48
triadic
#1F0C48 #481F0C #0C481F
tetradic
#1F0C48 #480C17 #35480C #0C483D
square
#1F0C48 #480C17 #35480C #0C483D
split-complementary
#1F0C48 #483D0C #17480C
monochromatic
#0B041A #0B041A #1F0C48 #36157C #4C1DB1

Accessibility & contrast

On white

17.44
#1F0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0C48
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C48#FFFFFF#000000##FFFFFF
##1F0C481.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001847
Tritanopia (blue-blind)
#101C29
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0c48;
/* rgb */ color: rgb(31, 12, 72);
/* oklch */ color: oklch(22.9% 0.103 290.2);
Tailwind
colors: {
  custom: {
    50: '#604d7c',
    500: '#1f0c48',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c48;
$custom-light: #604d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c48",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 259,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22883,
    "c": 0.10306,
    "h": 290.2
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#1F0C48
secondary
#68842C
accent
#EE3AB5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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