#1F1061#1F1061

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

Color values

HEX#1F1061
RGBrgb(31, 16, 97)
HSLhsl(251, 72%, 22%)
HSVhsv(251, 84%, 38%)
CMYKcmyk(68%, 83.5%, 0%, 62%)
CIE-LABlab(12.76, 32.39, -44.80)
CIE-LCHlch(12.76, 55.28, 305.86°)
OKLaboklab(26.24% 0.0246 -0.1293)
OKLCHoklch(26.24% 0.132 280.8)
XYZxyz(2.9074, 1.5247, 11.4480)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1061 #526110
analogous
#102A61 #1F1061 #481061
triadic
#1F1061 #611F10 #10611F
tetradic
#1F1061 #61102A #526110 #106148
square
#1F1061 #61102A #526110 #106148
split-complementary
#1F1061 #614810 #2A6110
monochromatic
#08041A #0E072C #1F1061 #301996 #4121CA

Accessibility & contrast

On white

16.09
#1F1061 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1061
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1061#FFFFFF#000000##FFFFFF
##1F10611.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1061;
/* rgb */ color: rgb(31, 16, 97);
/* oklch */ color: oklch(26.2% 0.132 280.8);
Tailwind
colors: {
  custom: {
    50: '#65518f',
    500: '#1f1061',
    950: '#000000',
  },
}
SCSS
$custom: #1f1061;
$custom-light: #65518f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1061",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 97
  },
  "hsl": {
    "h": 251.111,
    "s": 71.681,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26243,
    "c": 0.13162,
    "h": 280.8
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#1F1061
secondary
#879A33
accent
#EE39CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F1061

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

Preview Lab → · Contrast checker → · Palette generator →

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