#1F0E49#1F0E49

#1F0E49 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.102 H 289.1°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#1F0E49
RGBrgb(31, 14, 73)
HSLhsl(257, 68%, 17%)
HSVhsv(257, 81%, 29%)
CMYKcmyk(57.5%, 80.8%, 0%, 71.4%)
CIE-LABlab(9.69, 25.54, -33.51)
CIE-LCHlch(9.69, 42.13, 307.31°)
OKLaboklab(23.28% 0.0334 -0.0963)
OKLCHoklch(23.28% 0.102 289.1)
XYZxyz(1.9244, 1.0863, 6.4103)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E49 #38490E
analogous
#0E1B49 #1F0E49 #3D0E49
triadic
#1F0E49 #491F0E #0E491F
tetradic
#1F0E49 #490E1B #38490E #0E493D
square
#1F0E49 #490E1B #38490E #0E493D
split-complementary
#1F0E49 #493D0E #1B490E
monochromatic
#0B051A #0B051A #1F0E49 #35187C #4B22B0

Accessibility & contrast

On white

17.25
#1F0E49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F0E49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E49
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E49#FFFFFF#000000##FFFFFF
##1F0E491.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4B
Deuteranopia (green-blind)
#001948
Tritanopia (blue-blind)
#0F1E2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0e49;
/* rgb */ color: rgb(31, 14, 73);
/* oklch */ color: oklch(23.3% 0.102 289.1);
Tailwind
colors: {
  custom: {
    50: '#604e7c',
    500: '#1f0e49',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e49;
$custom-light: #604e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e49",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 73
  },
  "hsl": {
    "h": 257.288,
    "s": 67.816,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2328,
    "c": 0.10191,
    "h": 289.1
  },
  "luminance": 0.01086
}

Semantic roles & 50–950 ramp

primary
#1F0E49
secondary
#6B842F
accent
#EB3DB9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0E49

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

Preview Lab → · Contrast checker → · Palette generator →

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