#1F1065#1F1065

#1F1065 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.137 H 279.8°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#1F1065
RGBrgb(31, 16, 101)
HSLhsl(251, 73%, 23%)
HSVhsv(251, 84%, 40%)
CMYKcmyk(69.3%, 84.2%, 0%, 60.4%)
CIE-LABlab(13.24, 33.70, -46.68)
CIE-LCHlch(13.24, 57.57, 305.83°)
OKLaboklab(26.71% 0.0233 -0.1348)
OKLCHoklch(26.71% 0.137 279.8)
XYZxyz(3.0986, 1.6012, 12.4552)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1065 #566510
analogous
#102B65 #1F1065 #491065
triadic
#1F1065 #651F10 #10651F
tetradic
#1F1065 #65102B #566510 #106549
square
#1F1065 #65102B #566510 #106549
split-complementary
#1F1065 #654910 #2B6510
monochromatic
#08041A #0F0830 #1F1065 #2F189A #3F21CF

Accessibility & contrast

On white

15.91
#1F1065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1065
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1065#FFFFFF#000000##FFFFFF
##1F10651.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1065;
/* rgb */ color: rgb(31, 16, 101);
/* oklch */ color: oklch(26.7% 0.137 279.8);
Tailwind
colors: {
  custom: {
    50: '#665192',
    500: '#1f1065',
    950: '#000000',
  },
}
SCSS
$custom: #1f1065;
$custom-light: #665192;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1065",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 101
  },
  "hsl": {
    "h": 250.588,
    "s": 72.65,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26713,
    "c": 0.13676,
    "h": 279.8
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#1F1065
secondary
#8B9D33
accent
#EF38CF
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1065

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

Preview Lab → · Contrast checker → · Palette generator →

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