#1F1066#1F1066

#1F1066 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.138 H 279.6°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#1F1066
RGBrgb(31, 16, 102)
HSLhsl(250, 73%, 23%)
HSVhsv(250, 84%, 40%)
CMYKcmyk(69.6%, 84.3%, 0%, 60%)
CIE-LABlab(13.36, 34.03, -47.14)
CIE-LCHlch(13.36, 58.14, 305.83°)
OKLaboklab(26.83% 0.023 -0.1361)
OKLCHoklch(26.83% 0.138 279.6)
XYZxyz(3.1479, 1.6209, 12.7148)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1066 #576610
analogous
#102C66 #1F1066 #4A1066
triadic
#1F1066 #661F10 #10661F
tetradic
#1F1066 #66102C #576610 #10664A
square
#1F1066 #66102C #576610 #10664A
split-complementary
#1F1066 #664A10 #2C6610
monochromatic
#08041A #0F0831 #1F1066 #2F189B #3F21D0

Accessibility & contrast

On white

15.86
#1F1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1066
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1066#FFFFFF#000000##FFFFFF
##1F10661.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002568
Deuteranopia (green-blind)
#001F65
Tritanopia (blue-blind)
#002A3B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1066;
/* rgb */ color: rgb(31, 16, 102);
/* oklch */ color: oklch(26.8% 0.138 279.6);
Tailwind
colors: {
  custom: {
    50: '#675193',
    500: '#1f1066',
    950: '#000000',
  },
}
SCSS
$custom: #1f1066;
$custom-light: #675193;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1066",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 250.465,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26831,
    "c": 0.13804,
    "h": 279.6
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#1F1066
secondary
#8C9E33
accent
#F038D0
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1066

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

Preview Lab → · Contrast checker → · Palette generator →

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