#1F0E63#1F0E63

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

Color values

HEX#1F0E63
RGBrgb(31, 14, 99)
HSLhsl(252, 75%, 22%)
HSVhsv(252, 86%, 39%)
CMYKcmyk(68.7%, 85.9%, 0%, 61.2%)
CIE-LABlab(12.65, 34.07, -46.33)
CIE-LCHlch(12.65, 57.51, 306.33°)
OKLaboklab(26.23% 0.0251 -0.1337)
OKLCHoklch(26.23% 0.136 280.6)
XYZxyz(2.9735, 1.5060, 11.9360)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0E63 #52630E
analogous
#0E2863 #1F0E63 #4A0E63
triadic
#1F0E63 #631F0E #0E631F
tetradic
#1F0E63 #630E28 #52630E #0E634A
square
#1F0E63 #630E28 #52630E #0E634A
split-complementary
#1F0E63 #634A0E #28630E
monochromatic
#08041B #0E062D #1F0E63 #301699 #411DCE

Accessibility & contrast

On white

16.14
#1F0E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F0E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0E63
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0E63#FFFFFF#000000##FFFFFF
##1F0E631.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002465
Deuteranopia (green-blind)
#001E62
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f0e63;
/* rgb */ color: rgb(31, 14, 99);
/* oklch */ color: oklch(26.2% 0.136 280.6);
Tailwind
colors: {
  custom: {
    50: '#665090',
    500: '#1f0e63',
    950: '#000000',
  },
}
SCSS
$custom: #1f0e63;
$custom-light: #665090;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0e63",
  "rgb": {
    "r": 31,
    "g": 14,
    "b": 99
  },
  "hsl": {
    "h": 252,
    "s": 75.221,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26232,
    "c": 0.13606,
    "h": 280.6
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#1F0E63
secondary
#879C30
accent
#F236CC
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0E63

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

Preview Lab → · Contrast checker → · Palette generator →

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