#1F0338#1F0338

#1F0338 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.096 H 302.6°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#1F0338
RGBrgb(31, 3, 56)
HSLhsl(272, 90%, 12%)
HSVhsv(272, 95%, 22%)
CMYKcmyk(44.6%, 94.6%, 0%, 78%)
CIE-LABlab(5.80, 25.96, -27.75)
CIE-LCHlch(5.80, 38.00, 313.09°)
OKLaboklab(19.84% 0.0515 -0.0805)
OKLCHoklch(19.84% 0.096 302.6)
XYZxyz(1.3113, 0.6420, 3.7954)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0338 #1C3803
analogous
#040338 #1F0338 #380337
triadic
#1F0338 #381F03 #03381F
tetradic
#1F0338 #380403 #1C3803 #033738
square
#1F0338 #380403 #1C3803 #033738
split-complementary
#1F0338 #373803 #033804
monochromatic
#10021D #10021D #1F0338 #3F0672 #5F09AC

Accessibility & contrast

On white

18.61
#1F0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F0338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0338
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0338#FFFFFF#000000##FFFFFF
##1F03381.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#1A111E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f0338;
/* rgb */ color: rgb(31, 3, 56);
/* oklch */ color: oklch(19.8% 0.096 302.6);
Tailwind
colors: {
  custom: {
    50: '#5e476f',
    500: '#1f0338',
    950: '#000000',
  },
}
SCSS
$custom: #1f0338;
$custom-light: #5e476f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0338",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 271.698,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19837,
    "c": 0.09554,
    "h": 302.6
  },
  "luminance": 0.00642
}

Semantic roles & 50–950 ramp

primary
#1F0338
secondary
#497B1C
accent
#FF298E
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #1F0338

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

Preview Lab → · Contrast checker → · Palette generator →

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