#1F0F48#1F0F48

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

Color values

HEX#1F0F48
RGBrgb(31, 15, 72)
HSLhsl(257, 66%, 17%)
HSVhsv(257, 79%, 28%)
CMYKcmyk(56.9%, 79.2%, 0%, 71.8%)
CIE-LABlab(9.80, 24.60, -32.63)
CIE-LCHlch(9.80, 40.86, 307.02°)
OKLaboklab(23.33% 0.0327 -0.0937)
OKLCHoklch(23.33% 0.099 289.2)
XYZxyz(1.9053, 1.1007, 6.2417)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F48 #38480F
analogous
#0F1C48 #1F0F48 #3C0F48
triadic
#1F0F48 #481F0F #0F481F
tetradic
#1F0F48 #480F1C #38480F #0F483C
square
#1F0F48 #480F1C #38480F #0F483C
split-complementary
#1F0F48 #483C0F #1C480F
monochromatic
#0B0519 #0B0519 #1F0F48 #351A7B #4B24AD

Accessibility & contrast

On white

17.21
#1F0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F48
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F48#FFFFFF#000000##FFFFFF
##1F0F481.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#101E2A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f0f48;
/* rgb */ color: rgb(31, 15, 72);
/* oklch */ color: oklch(23.3% 0.099 289.2);
Tailwind
colors: {
  custom: {
    50: '#604f7c',
    500: '#1f0f48',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f48;
$custom-light: #604f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f48",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 256.842,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23329,
    "c": 0.09922,
    "h": 289.2
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#1F0F48
secondary
#6B8230
accent
#E83FB9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#050209
muted
#79787B

Preview Lab

Preview with #1F0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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