#1F1165#1F1165

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

Color values

HEX#1F1165
RGBrgb(31, 17, 101)
HSLhsl(250, 71%, 23%)
HSVhsv(250, 83%, 40%)
CMYKcmyk(69.3%, 83.2%, 0%, 60.4%)
CIE-LABlab(13.42, 33.17, -46.37)
CIE-LCHlch(13.42, 57.02, 305.58°)
OKLaboklab(26.84% 0.0227 -0.1339)
OKLCHoklch(26.84% 0.136 279.6)
XYZxyz(3.1137, 1.6315, 12.4602)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1165 #576511
analogous
#112D65 #1F1165 #491165
triadic
#1F1165 #651F11 #11651F
tetradic
#1F1165 #65112D #576511 #116549
square
#1F1165 #65112D #576511 #116549
split-complementary
#1F1165 #654911 #2D6511
monochromatic
#08041A #0F0831 #1F1165 #2F1A99 #3F23CE

Accessibility & contrast

On white

15.83
#1F1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1165
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1165#FFFFFF#000000##FFFFFF
##1F11651.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.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: #1f1165;
/* rgb */ color: rgb(31, 17, 101);
/* oklch */ color: oklch(26.8% 0.136 279.6);
Tailwind
colors: {
  custom: {
    50: '#665292',
    500: '#1f1165',
    950: '#000000',
  },
}
SCSS
$custom: #1f1165;
$custom-light: #665292;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1165",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 250,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2684,
    "c": 0.13581,
    "h": 279.6
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#1F1165
secondary
#8C9D35
accent
#EE3AD0
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1165

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

Preview Lab → · Contrast checker → · Palette generator →

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