#1F115E#1F115E

#1F115E is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.127 H 281.3°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#1F115E
RGBrgb(31, 17, 94)
HSLhsl(251, 69%, 22%)
HSVhsv(251, 82%, 37%)
CMYKcmyk(67%, 81.9%, 0%, 63.1%)
CIE-LABlab(12.61, 30.84, -43.06)
CIE-LCHlch(12.61, 52.96, 305.61°)
OKLaboklab(26.03% 0.0249 -0.1242)
OKLCHoklch(26.03% 0.127 281.3)
XYZxyz(2.7853, 1.5001, 10.7303)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115E #505E11
analogous
#112A5E #1F115E #46115E
triadic
#1F115E #5E1F11 #115E1F
tetradic
#1F115E #5E112A #505E11 #115E46
square
#1F115E #5E112A #505E11 #115E46
split-complementary
#1F115E #5E4611 #2A5E11
monochromatic
#09051A #0E082A #1F115E #301A92 #4124C6

Accessibility & contrast

On white

16.15
#1F115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F115E
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115E#FFFFFF#000000##FFFFFF
##1F115E1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f115e;
/* rgb */ color: rgb(31, 17, 94);
/* oklch */ color: oklch(26.0% 0.127 281.3);
Tailwind
colors: {
  custom: {
    50: '#65518d',
    500: '#1f115e',
    950: '#000000',
  },
}
SCSS
$custom: #1f115e;
$custom-light: #65518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 250.909,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26031,
    "c": 0.12669,
    "h": 281.3
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#1F115E
secondary
#859734
accent
#EC3CCC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F115E

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

Preview Lab → · Contrast checker → · Palette generator →

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