#1F0B52#1F0B52

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

Color values

HEX#1F0B52
RGBrgb(31, 11, 82)
HSLhsl(257, 76%, 18%)
HSVhsv(257, 87%, 32%)
CMYKcmyk(62.2%, 86.6%, 0%, 67.8%)
CIE-LABlab(10.10, 30.13, -39.05)
CIE-LCHlch(10.10, 49.33, 307.65°)
OKLaboklab(23.87% 0.0331 -0.1125)
OKLCHoklch(23.87% 0.117 286.4)
XYZxyz(2.2073, 1.1397, 8.0847)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0B52 #3E520B
analogous
#0B1B52 #1F0B52 #420B52
triadic
#1F0B52 #521F0B #0B521F
tetradic
#1F0B52 #520B1B #3E520B #0B5242
square
#1F0B52 #520B1B #3E520B #0B5242
split-complementary
#1F0B52 #52420B #1B520B
monochromatic
#0A041B #0B041C #1F0B52 #331288 #4819BE

Accessibility & contrast

On white

17.10
#1F0B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0B52
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0B52#FFFFFF#000000##FFFFFF
##1F0B521.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#06202F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0b52;
/* rgb */ color: rgb(31, 11, 82);
/* oklch */ color: oklch(23.9% 0.117 286.4);
Tailwind
colors: {
  custom: {
    50: '#624d83',
    500: '#1f0b52',
    950: '#000000',
  },
}
SCSS
$custom: #1f0b52;
$custom-light: #624d83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0b52",
  "rgb": {
    "r": 31,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 256.901,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23871,
    "c": 0.11724,
    "h": 286.4
  },
  "luminance": 0.0114
}

Semantic roles & 50–950 ramp

primary
#1F0B52
secondary
#728E2B
accent
#F335BD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06010B
muted
#7A777C

Preview Lab

Preview with #1F0B52

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

Preview Lab → · Contrast checker → · Palette generator →

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