#1F0838#1F0838

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

Color values

HEX#1F0838
RGBrgb(31, 8, 56)
HSLhsl(269, 75%, 13%)
HSVhsv(269, 86%, 22%)
CMYKcmyk(44.6%, 85.7%, 0%, 78%)
CIE-LABlab(6.78, 23.36, -26.16)
CIE-LCHlch(6.78, 35.08, 311.77°)
OKLaboklab(20.64% 0.0446 -0.075)
OKLCHoklch(20.64% 0.087 300.7)
XYZxyz(1.3655, 0.7505, 3.8135)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0838 #213808
analogous
#080938 #1F0838 #370838
triadic
#1F0838 #381F08 #08381F
tetradic
#1F0838 #380809 #213808 #083837
square
#1F0838 #380809 #213808 #083837
split-complementary
#1F0838 #383708 #093808
monochromatic
#0F041B #0F041B #1F0838 #3D106E #5A17A3

Accessibility & contrast

On white

18.26
#1F0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0838
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0838#FFFFFF#000000##FFFFFF
##1F08381.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#19141F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f0838;
/* rgb */ color: rgb(31, 8, 56);
/* oklch */ color: oklch(20.6% 0.087 300.7);
Tailwind
colors: {
  custom: {
    50: '#5e4a6f',
    500: '#1f0838',
    950: '#000000',
  },
}
SCSS
$custom: #1f0838;
$custom-light: #5e4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0838",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 268.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2064,
    "c": 0.08727,
    "h": 300.7
  },
  "luminance": 0.0075
}

Semantic roles & 50–950 ramp

primary
#1F0838
secondary
#507725
accent
#F23698
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1F0838

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

Preview Lab → · Contrast checker → · Palette generator →

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