#1F115F#1F115F

#1F115F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.128 H 281.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#1F115F
RGBrgb(31, 17, 95)
HSLhsl(251, 70%, 22%)
HSVhsv(251, 82%, 37%)
CMYKcmyk(67.4%, 82.1%, 0%, 62.7%)
CIE-LABlab(12.72, 31.17, -43.54)
CIE-LCHlch(12.72, 53.54, 305.60°)
OKLaboklab(26.15% 0.0246 -0.1256)
OKLCHoklch(26.15% 0.128 281.1)
XYZxyz(2.8304, 1.5182, 10.9681)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115F #515F11
analogous
#112A5F #1F115F #46115F
triadic
#1F115F #5F1F11 #115F1F
tetradic
#1F115F #5F112A #515F11 #115F46
square
#1F115F #5F112A #515F11 #115F46
split-complementary
#1F115F #5F4611 #2A5F11
monochromatic
#08051A #0E082B #1F115F #301A93 #4124C7

Accessibility & contrast

On white

16.11
#1F115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F115F
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115F#FFFFFF#000000##FFFFFF
##1F115F1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f115f;
/* rgb */ color: rgb(31, 17, 95);
/* oklch */ color: oklch(26.1% 0.128 281.1);
Tailwind
colors: {
  custom: {
    50: '#65518d',
    500: '#1f115f',
    950: '#000000',
  },
}
SCSS
$custom: #1f115f;
$custom-light: #65518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115f",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 250.769,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26146,
    "c": 0.128,
    "h": 281.1
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#1F115F
secondary
#869834
accent
#EC3BCD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F115F

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

Preview Lab → · Contrast checker → · Palette generator →

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