#1F0635#1F0635

#1F0635 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.087 H 303.7°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#1F0635
RGBrgb(31, 6, 53)
HSLhsl(272, 80%, 12%)
HSVhsv(272, 89%, 21%)
CMYKcmyk(41.5%, 88.7%, 0%, 79.2%)
CIE-LABlab(6.13, 23.34, -25.02)
CIE-LCHlch(6.13, 34.22, 313.02°)
OKLaboklab(20.02% 0.0482 -0.0721)
OKLCHoklch(20.02% 0.087 303.7)
XYZxyz(1.2727, 0.6786, 3.4314)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0635 #1C3506
analogous
#080635 #1F0635 #350634
triadic
#1F0635 #351F06 #06351F
tetradic
#1F0635 #350806 #1C3506 #063435
square
#1F0635 #350806 #1C3506 #063435
split-complementary
#1F0635 #343506 #063508
monochromatic
#10031B #10031B #1F0635 #3F0C6C #5F12A3

Accessibility & contrast

On white

18.49
#1F0635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1F0635 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0635
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0635#FFFFFF#000000##FFFFFF
##1F06351.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#1B121D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1f0635;
/* rgb */ color: rgb(31, 6, 53);
/* oklch */ color: oklch(20.0% 0.087 303.7);
Tailwind
colors: {
  custom: {
    50: '#5d496d',
    500: '#1f0635',
    950: '#000000',
  },
}
SCSS
$custom: #1f0635;
$custom-light: #5d496d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0635",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 271.915,
    "s": 79.661,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2002,
    "c": 0.08676,
    "h": 303.7
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#1F0635
secondary
#497521
accent
#F6328E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0635

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

Preview Lab → · Contrast checker → · Palette generator →

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