#1F0F4C#1F0F4C

#1F0F4C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.105 H 287.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#1F0F4C
RGBrgb(31, 15, 76)
HSLhsl(256, 67%, 18%)
HSVhsv(256, 80%, 30%)
CMYKcmyk(59.2%, 80.3%, 0%, 70.2%)
CIE-LABlab(10.22, 25.94, -34.73)
CIE-LCHlch(10.22, 43.35, 306.76°)
OKLaboklab(23.75% 0.0316 -0.0999)
OKLCHoklch(23.75% 0.105 287.6)
XYZxyz(2.0400, 1.1547, 6.9515)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4C #3C4C0F
analogous
#0F1D4C #1F0F4C #3D0F4C
triadic
#1F0F4C #4C1F0F #0F4C1F
tetradic
#1F0F4C #4C0F1D #3C4C0F #0F4C3D
square
#1F0F4C #4C0F1D #3C4C0F #0F4C3D
split-complementary
#1F0F4C #4C3D0F #1D4C0F
monochromatic
#0A051A #0A051A #1F0F4C #34197F #4923B2

Accessibility & contrast

On white

17.06
#1F0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F0F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F4C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4C#FFFFFF#000000##FFFFFF
##1F0F4C1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#0D1F2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0f4c;
/* rgb */ color: rgb(31, 15, 76);
/* oklch */ color: oklch(23.8% 0.105 287.6);
Tailwind
colors: {
  custom: {
    50: '#614f7f',
    500: '#1f0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4c;
$custom-light: #614f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4c",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 255.738,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2375,
    "c": 0.10475,
    "h": 287.6
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#1F0F4C
secondary
#708631
accent
#EA3EBD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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