#1F1060#1F1060

#1F1060 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.130 H 281.0°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#1F1060
RGBrgb(31, 16, 96)
HSLhsl(251, 71%, 22%)
HSVhsv(251, 83%, 38%)
CMYKcmyk(67.7%, 83.3%, 0%, 62.4%)
CIE-LABlab(12.65, 32.06, -44.33)
CIE-LCHlch(12.65, 54.70, 305.87°)
OKLaboklab(26.13% 0.0249 -0.1279)
OKLCHoklch(26.13% 0.13 281)
XYZxyz(2.8610, 1.5062, 11.2040)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1060 #516010
analogous
#102960 #1F1060 #471060
triadic
#1F1060 #601F10 #10601F
tetradic
#1F1060 #601029 #516010 #106047
square
#1F1060 #601029 #516010 #106047
split-complementary
#1F1060 #604710 #296010
monochromatic
#08041A #0E072C #1F1060 #301994 #4121C9

Accessibility & contrast

On white

16.14
#1F1060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F1060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1060
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1060#FFFFFF#000000##FFFFFF
##1F10601.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.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: #1f1060;
/* rgb */ color: rgb(31, 16, 96);
/* oklch */ color: oklch(26.1% 0.130 281.0);
Tailwind
colors: {
  custom: {
    50: '#65518e',
    500: '#1f1060',
    950: '#000000',
  },
}
SCSS
$custom: #1f1060;
$custom-light: #65518e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1060",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 251.25,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26127,
    "c": 0.13032,
    "h": 281
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#1F1060
secondary
#869933
accent
#EE3ACC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F1060

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

Preview Lab → · Contrast checker → · Palette generator →

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