#1F1160#1F1160

#1F1160 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.129 H 280.8°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#1F1160
RGBrgb(31, 17, 96)
HSLhsl(251, 70%, 22%)
HSVhsv(251, 82%, 38%)
CMYKcmyk(67.7%, 82.3%, 0%, 62.4%)
CIE-LABlab(12.84, 31.51, -44.01)
CIE-LCHlch(12.84, 54.13, 305.60°)
OKLaboklab(26.26% 0.0243 -0.127)
OKLCHoklch(26.26% 0.129 280.8)
XYZxyz(2.8762, 1.5365, 11.2091)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1160 #526011
analogous
#112B60 #1F1160 #471160
triadic
#1F1160 #601F11 #11601F
tetradic
#1F1160 #60112B #526011 #116047
square
#1F1160 #60112B #526011 #116047
split-complementary
#1F1160 #604711 #2B6011
monochromatic
#08051A #0E082C #1F1160 #301A94 #4123C8

Accessibility & contrast

On white

16.06
#1F1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1160
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1160#FFFFFF#000000##FFFFFF
##1F11601.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002462
Deuteranopia (green-blind)
#001E5F
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f1160;
/* rgb */ color: rgb(31, 17, 96);
/* oklch */ color: oklch(26.3% 0.129 280.8);
Tailwind
colors: {
  custom: {
    50: '#65518e',
    500: '#1f1160',
    950: '#000000',
  },
}
SCSS
$custom: #1f1160;
$custom-light: #65518e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1160",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 250.633,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2626,
    "c": 0.12931,
    "h": 280.8
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#1F1160
secondary
#879934
accent
#ED3BCD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F1160

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

Preview Lab → · Contrast checker → · Palette generator →

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