#1F115B#1F115B

#1F115B is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.123 H 282.1°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#1F115B
RGBrgb(31, 17, 91)
HSLhsl(251, 69%, 21%)
HSVhsv(251, 81%, 36%)
CMYKcmyk(65.9%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.27, 29.83, -41.60)
CIE-LCHlch(12.27, 51.19, 305.64°)
OKLaboklab(25.69% 0.0258 -0.12)
OKLCHoklch(25.69% 0.123 282.1)
XYZxyz(2.6533, 1.4473, 10.0351)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115B #4D5B11
analogous
#11285B #1F115B #44115B
triadic
#1F115B #5B1F11 #115B1F
tetradic
#1F115B #5B1128 #4D5B11 #115B44
square
#1F115B #5B1128 #4D5B11 #115B44
split-complementary
#1F115B #5B4411 #285B11
monochromatic
#09051A #0D0727 #1F115B #311B8F #4224C2

Accessibility & contrast

On white

16.28
#1F115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1F115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F115B
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115B#FFFFFF#000000##FFFFFF
##1F115B1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001D5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f115b;
/* rgb */ color: rgb(31, 17, 91);
/* oklch */ color: oklch(25.7% 0.123 282.1);
Tailwind
colors: {
  custom: {
    50: '#64518a',
    500: '#1f115b',
    950: '#000000',
  },
}
SCSS
$custom: #1f115b;
$custom-light: #64518a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115b",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 251.351,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25691,
    "c": 0.1227,
    "h": 282.1
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#1F115B
secondary
#829434
accent
#EB3CCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F115B

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

Preview Lab → · Contrast checker → · Palette generator →

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