#1F0F4B#1F0F4B

#1F0F4B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.103 H 288.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#1F0F4B
RGBrgb(31, 15, 75)
HSLhsl(256, 67%, 18%)
HSVhsv(256, 80%, 29%)
CMYKcmyk(58.7%, 80%, 0%, 70.6%)
CIE-LABlab(10.11, 25.60, -34.21)
CIE-LCHlch(10.11, 42.73, 306.81°)
OKLaboklab(23.64% 0.0319 -0.0983)
OKLCHoklch(23.64% 0.103 288)
XYZxyz(2.0055, 1.1409, 6.7698)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F4B #3B4B0F
analogous
#0F1D4B #1F0F4B #3D0F4B
triadic
#1F0F4B #4B1F0F #0F4B1F
tetradic
#1F0F4B #4B0F1D #3B4B0F #0F4B3D
square
#1F0F4B #4B0F1D #3B4B0F #0F4B3D
split-complementary
#1F0F4B #4B3D0F #1D4B0F
monochromatic
#0B051A #0B051A #1F0F4B #34197E #4923B1

Accessibility & contrast

On white

17.10
#1F0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F4B
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F4B#FFFFFF#000000##FFFFFF
##1F0F4B1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#0E1F2C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0f4b;
/* rgb */ color: rgb(31, 15, 75);
/* oklch */ color: oklch(23.6% 0.103 288.0);
Tailwind
colors: {
  custom: {
    50: '#614f7e',
    500: '#1f0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f4b;
$custom-light: #614f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f4b",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 256,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23644,
    "c": 0.10338,
    "h": 288
  },
  "luminance": 0.01141
}

Semantic roles & 50–950 ramp

primary
#1F0F4B
secondary
#6F8530
accent
#EA3EBC
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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