#1F1062#1F1062

#1F1062 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.4% C 0.133 H 280.5°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#1F1062
RGBrgb(31, 16, 98)
HSLhsl(251, 72%, 22%)
HSVhsv(251, 84%, 38%)
CMYKcmyk(68.4%, 83.7%, 0%, 61.6%)
CIE-LABlab(12.88, 32.72, -45.27)
CIE-LCHlch(12.88, 55.86, 305.85°)
OKLaboklab(26.36% 0.0243 -0.1307)
OKLCHoklch(26.36% 0.133 280.5)
XYZxyz(2.9543, 1.5435, 11.6951)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1062 #536210
analogous
#102A62 #1F1062 #481062
triadic
#1F1062 #621F10 #10621F
tetradic
#1F1062 #62102A #536210 #106248
square
#1F1062 #62102A #536210 #106248
split-complementary
#1F1062 #624810 #2A6210
monochromatic
#08041A #0E072D #1F1062 #301997 #4021CB

Accessibility & contrast

On white

16.05
#1F1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1062
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1062#FFFFFF#000000##FFFFFF
##1F10621.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001E61
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f1062;
/* rgb */ color: rgb(31, 16, 98);
/* oklch */ color: oklch(26.4% 0.133 280.5);
Tailwind
colors: {
  custom: {
    50: '#665190',
    500: '#1f1062',
    950: '#000000',
  },
}
SCSS
$custom: #1f1062;
$custom-light: #665190;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1062",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 250.976,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2636,
    "c": 0.13292,
    "h": 280.5
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#1F1062
secondary
#889B33
accent
#EF39CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #1F1062

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

Preview Lab → · Contrast checker → · Palette generator →

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