#1F1064#1F1064

#1F1064 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.135 H 280.1°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#1F1064
RGBrgb(31, 16, 100)
HSLhsl(251, 72%, 23%)
HSVhsv(251, 84%, 39%)
CMYKcmyk(69%, 84%, 0%, 60.8%)
CIE-LABlab(13.12, 33.38, -46.21)
CIE-LCHlch(13.12, 57.00, 305.84°)
OKLaboklab(26.6% 0.0237 -0.1334)
OKLCHoklch(26.6% 0.135 280.1)
XYZxyz(3.0499, 1.5817, 12.1987)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1064 #556410
analogous
#102B64 #1F1064 #491064
triadic
#1F1064 #641F10 #10641F
tetradic
#1F1064 #64102B #556410 #106449
square
#1F1064 #64102B #556410 #106449
split-complementary
#1F1064 #644910 #2B6410
monochromatic
#08041A #0F082F #1F1064 #2F1899 #4021CE

Accessibility & contrast

On white

15.95
#1F1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1064
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1064#FFFFFF#000000##FFFFFF
##1F10641.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002566
Deuteranopia (green-blind)
#001F63
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1064;
/* rgb */ color: rgb(31, 16, 100);
/* oklch */ color: oklch(26.6% 0.135 280.1);
Tailwind
colors: {
  custom: {
    50: '#665191',
    500: '#1f1064',
    950: '#000000',
  },
}
SCSS
$custom: #1f1064;
$custom-light: #665191;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1064",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 250.714,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26595,
    "c": 0.13549,
    "h": 280.1
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#1F1064
secondary
#8A9D33
accent
#EF39CF
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1064

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

Preview Lab → · Contrast checker → · Palette generator →

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