#1F0F63#1F0F63

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

Color values

HEX#1F0F63
RGBrgb(31, 15, 99)
HSLhsl(251, 74%, 22%)
HSVhsv(251, 85%, 39%)
CMYKcmyk(68.7%, 84.8%, 0%, 61.2%)
CIE-LABlab(12.82, 33.57, -46.04)
CIE-LCHlch(12.82, 56.98, 306.09°)
OKLaboklab(26.35% 0.0246 -0.1329)
OKLCHoklch(26.35% 0.135 280.5)
XYZxyz(2.9873, 1.5336, 11.9405)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F63 #53630F
analogous
#0F2963 #1F0F63 #490F63
triadic
#1F0F63 #631F0F #0F631F
tetradic
#1F0F63 #630F29 #53630F #0F6349
square
#1F0F63 #630F29 #53630F #0F6349
split-complementary
#1F0F63 #63490F #29630F
monochromatic
#08041B #0E072E #1F0F63 #301798 #401FCD

Accessibility & contrast

On white

16.07
#1F0F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F63
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F63#FFFFFF#000000##FFFFFF
##1F0F631.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f0f63;
/* rgb */ color: rgb(31, 15, 99);
/* oklch */ color: oklch(26.4% 0.135 280.5);
Tailwind
colors: {
  custom: {
    50: '#665090',
    500: '#1f0f63',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f63;
$custom-light: #665090;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f63",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 99
  },
  "hsl": {
    "h": 251.429,
    "s": 73.684,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26352,
    "c": 0.13515,
    "h": 280.5
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#1F0F63
secondary
#889C32
accent
#F037CD
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F0F63

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

Preview Lab → · Contrast checker → · Palette generator →

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