#1F1164#1F1164

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

Color values

HEX#1F1164
RGBrgb(31, 17, 100)
HSLhsl(250, 71%, 23%)
HSVhsv(250, 83%, 39%)
CMYKcmyk(69%, 83%, 0%, 60.8%)
CIE-LABlab(13.30, 32.84, -45.91)
CIE-LCHlch(13.30, 56.44, 305.58°)
OKLaboklab(26.72% 0.0231 -0.1325)
OKLCHoklch(26.72% 0.135 279.9)
XYZxyz(3.0650, 1.6121, 12.2038)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1164 #566411
analogous
#112D64 #1F1164 #481164
triadic
#1F1164 #641F11 #11641F
tetradic
#1F1164 #64112D #566411 #116448
square
#1F1164 #64112D #566411 #116448
split-complementary
#1F1164 #644811 #2D6411
monochromatic
#08041A #0F0830 #1F1164 #2F1A98 #3F23CD

Accessibility & contrast

On white

15.88
#1F1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1164
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1164#FFFFFF#000000##FFFFFF
##1F11641.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1164;
/* rgb */ color: rgb(31, 17, 100);
/* oklch */ color: oklch(26.7% 0.135 279.9);
Tailwind
colors: {
  custom: {
    50: '#665291',
    500: '#1f1164',
    950: '#000000',
  },
}
SCSS
$custom: #1f1164;
$custom-light: #665291;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1164",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 250.12,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26723,
    "c": 0.13452,
    "h": 279.9
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#1F1164
secondary
#8B9C35
accent
#EE3ACF
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1164

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

Preview Lab → · Contrast checker → · Palette generator →

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