#1F0E44#1F0E44

#1F0E44 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.095 H 291.4°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#1F0E44
RGBrgb(31, 14, 68)
HSLhsl(259, 66%, 16%)
HSVhsv(259, 79%, 27%)
CMYKcmyk(54.4%, 79.4%, 0%, 73.3%)
CIE-LABlab(9.18, 23.88, -30.84)
CIE-LCHlch(9.18, 39.01, 307.75°)
OKLaboklab(22.76% 0.0347 -0.0884)
OKLCHoklch(22.76% 0.095 291.4)
XYZxyz(1.7652, 1.0227, 5.5721)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E44 #33440E
analogous
#0E1844 #1F0E44 #3A0E44
triadic
#1F0E44 #441F0E #0E441F
tetradic
#1F0E44 #440E18 #33440E #0E443A
square
#1F0E44 #440E18 #33440E #0E443A
split-complementary
#1F0E44 #443A0E #18440E
monochromatic
#0C0519 #0C0519 #1F0E44 #361877 #4D23AA

Accessibility & contrast

On white

17.43
#1F0E44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0E44
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E44#FFFFFF#000000##FFFFFF
##1F0E441.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B46
Deuteranopia (green-blind)
#001943
Tritanopia (blue-blind)
#131C27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f0e44;
/* rgb */ color: rgb(31, 14, 68);
/* oklch */ color: oklch(22.8% 0.095 291.4);
Tailwind
colors: {
  custom: {
    50: '#5f4e78',
    500: '#1f0e44',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e44;
$custom-light: #5f4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e44",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 68
  },
  "hsl": {
    "h": 258.889,
    "s": 65.854,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22759,
    "c": 0.095,
    "h": 291.4
  },
  "luminance": 0.01023
}

Semantic roles & 50–950 ramp

primary
#1F0E44
secondary
#667F2F
accent
#E93FB3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E44

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

Preview Lab → · Contrast checker → · Palette generator →

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