#1F0948#1F0948

#1F0948 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.107 H 291.1°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#1F0948
RGBrgb(31, 9, 72)
HSLhsl(261, 78%, 16%)
HSVhsv(261, 88%, 28%)
CMYKcmyk(56.9%, 87.5%, 0%, 71.8%)
CIE-LABlab(8.61, 28.00, -34.59)
CIE-LCHlch(8.61, 44.50, 308.99°)
OKLaboklab(22.49% 0.0383 -0.0994)
OKLCHoklch(22.49% 0.107 291.1)
XYZxyz(1.8321, 0.9545, 6.2173)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0948 #324809
analogous
#091248 #1F0948 #3E0948
triadic
#1F0948 #481F09 #09481F
tetradic
#1F0948 #480912 #324809 #09483E
square
#1F0948 #480912 #324809 #09483E
split-complementary
#1F0948 #483E09 #124809
monochromatic
#0C031B #0C031B #1F0948 #36107E #4E17B5

Accessibility & contrast

On white

17.63
#1F0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0948
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0948#FFFFFF#000000##FFFFFF
##1F09481.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001747
Tritanopia (blue-blind)
#111B28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f0948;
/* rgb */ color: rgb(31, 9, 72);
/* oklch */ color: oklch(22.5% 0.107 291.1);
Tailwind
colors: {
  custom: {
    50: '#614b7c',
    500: '#1f0948',
    950: '#000000',
  },
}
SCSS
$custom: #1f0948;
$custom-light: #614b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0948",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 260.952,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22487,
    "c": 0.10654,
    "h": 291.1
  },
  "luminance": 0.00955
}

Semantic roles & 50–950 ramp

primary
#1F0948
secondary
#658527
accent
#F434B1
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0948

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

Preview Lab → · Contrast checker → · Palette generator →

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