#1F1162#1F1162

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

Color values

HEX#1F1162
RGBrgb(31, 17, 98)
HSLhsl(250, 70%, 23%)
HSVhsv(250, 83%, 38%)
CMYKcmyk(68.4%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.07, 32.17, -44.96)
CIE-LCHlch(13.07, 55.29, 305.59°)
OKLaboklab(26.49% 0.0237 -0.1298)
OKLCHoklch(26.49% 0.132 280.3)
XYZxyz(2.9694, 1.5738, 11.7002)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1162 #546211
analogous
#112C62 #1F1162 #471162
triadic
#1F1162 #621F11 #11621F
tetradic
#1F1162 #62112C #546211 #116247
square
#1F1162 #62112C #546211 #116247
split-complementary
#1F1162 #624711 #2C6211
monochromatic
#08051A #0F082E #1F1162 #2F1A96 #4023CA

Accessibility & contrast

On white

15.97
#1F1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1162
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1162#FFFFFF#000000##FFFFFF
##1F11621.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1162;
/* rgb */ color: rgb(31, 17, 98);
/* oklch */ color: oklch(26.5% 0.132 280.3);
Tailwind
colors: {
  custom: {
    50: '#665190',
    500: '#1f1162',
    950: '#000000',
  },
}
SCSS
$custom: #1f1162;
$custom-light: #665190;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1162",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 250.37,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26491,
    "c": 0.13193,
    "h": 280.3
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#1F1162
secondary
#899A34
accent
#ED3BCE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #1F1162

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

Preview Lab → · Contrast checker → · Palette generator →

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