#1F0F4E#1F0F4E

#1F0F4E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.107 H 286.8°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#1F0F4E
RGBrgb(31, 15, 78)
HSLhsl(255, 68%, 18%)
HSVhsv(255, 81%, 31%)
CMYKcmyk(60.3%, 80.8%, 0%, 69.4%)
CIE-LABlab(10.43, 26.61, -35.77)
CIE-LCHlch(10.43, 44.58, 306.65°)
OKLaboklab(23.97% 0.0311 -0.1029)
OKLCHoklch(23.97% 0.107 286.8)
XYZxyz(2.1106, 1.1829, 7.3234)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4E #3E4E0F
analogous
#0F1E4E #1F0F4E #3E0F4E
triadic
#1F0F4E #4E1F0F #0F4E1F
tetradic
#1F0F4E #4E0F1E #3E4E0F #0F4E3E
square
#1F0F4E #4E0F1E #3E4E0F #0F4E3E
split-complementary
#1F0F4E #4E3E0F #1E4E0F
monochromatic
#0A051A #0B051B #1F0F4E #331981 #4823B5

Accessibility & contrast

On white

16.98
#1F0F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F0F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F4E
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4E#FFFFFF#000000##FFFFFF
##1F0F4E1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#0B202D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0f4e;
/* rgb */ color: rgb(31, 15, 78);
/* oklch */ color: oklch(24.0% 0.107 286.8);
Tailwind
colors: {
  custom: {
    50: '#614f80',
    500: '#1f0f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4e;
$custom-light: #614f80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4e",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 255.238,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23965,
    "c": 0.10748,
    "h": 286.8
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#1F0F4E
secondary
#728831
accent
#EB3DBF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F0F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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