#1F115D#1F115D

#1F115D is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.9% C 0.125 H 281.6°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#1F115D
RGBrgb(31, 17, 93)
HSLhsl(251, 69%, 22%)
HSVhsv(251, 82%, 36%)
CMYKcmyk(66.7%, 81.7%, 0%, 63.5%)
CIE-LABlab(12.50, 30.50, -42.57)
CIE-LCHlch(12.50, 52.37, 305.62°)
OKLaboklab(25.92% 0.0252 -0.1228)
OKLCHoklch(25.92% 0.125 281.6)
XYZxyz(2.7407, 1.4823, 10.4955)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115D #4F5D11
analogous
#11295D #1F115D #45115D
triadic
#1F115D #5D1F11 #115D1F
tetradic
#1F115D #5D1129 #4F5D11 #115D45
square
#1F115D #5D1129 #4F5D11 #115D45
split-complementary
#1F115D #5D4511 #295D11
monochromatic
#09051A #0E0829 #1F115D #301A91 #4124C4

Accessibility & contrast

On white

16.20
#1F115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F115D
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115D#FFFFFF#000000##FFFFFF
##1F115D1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f115d;
/* rgb */ color: rgb(31, 17, 93);
/* oklch */ color: oklch(25.9% 0.125 281.6);
Tailwind
colors: {
  custom: {
    50: '#64518c',
    500: '#1f115d',
    950: '#000000',
  },
}
SCSS
$custom: #1f115d;
$custom-light: #64518c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115d",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 251.053,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25917,
    "c": 0.12536,
    "h": 281.6
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#1F115D
secondary
#849634
accent
#EC3CCB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F115D

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

Preview Lab → · Contrast checker → · Palette generator →

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