#1F0F64#1F0F64

#1F0F64 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.136 H 280.2°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#1F0F64
RGBrgb(31, 15, 100)
HSLhsl(251, 74%, 23%)
HSVhsv(251, 85%, 39%)
CMYKcmyk(69%, 85%, 0%, 60.8%)
CIE-LABlab(12.94, 33.89, -46.51)
CIE-LCHlch(12.94, 57.55, 306.08°)
OKLaboklab(26.47% 0.0242 -0.1342)
OKLCHoklch(26.47% 0.136 280.2)
XYZxyz(3.0354, 1.5528, 12.1939)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F64 #54640F
analogous
#0F2A64 #1F0F64 #490F64
triadic
#1F0F64 #641F0F #0F641F
tetradic
#1F0F64 #640F2A #54640F #0F6449
square
#1F0F64 #640F2A #54640F #0F6449
split-complementary
#1F0F64 #64490F #2A640F
monochromatic
#08041B #0F072F #1F0F64 #2F1799 #401FCE

Accessibility & contrast

On white

16.02
#1F0F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F0F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F64
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F64#FFFFFF#000000##FFFFFF
##1F0F641.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002466
Deuteranopia (green-blind)
#001E63
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f0f64;
/* rgb */ color: rgb(31, 15, 100);
/* oklch */ color: oklch(26.5% 0.136 280.2);
Tailwind
colors: {
  custom: {
    50: '#665091',
    500: '#1f0f64',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f64;
$custom-light: #665091;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f64",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 100
  },
  "hsl": {
    "h": 251.294,
    "s": 73.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26471,
    "c": 0.13642,
    "h": 280.2
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#1F0F64
secondary
#899D32
accent
#F137CE
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0F64

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

Preview Lab → · Contrast checker → · Palette generator →

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