#1F115C#1F115C

#1F115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.8% C 0.124 H 281.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#1F115C
RGBrgb(31, 17, 92)
HSLhsl(251, 69%, 21%)
HSVhsv(251, 82%, 36%)
CMYKcmyk(66.3%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.38, 30.16, -42.09)
CIE-LCHlch(12.38, 51.78, 305.63°)
OKLaboklab(25.8% 0.0255 -0.1214)
OKLCHoklch(25.8% 0.124 281.8)
XYZxyz(2.6967, 1.4647, 10.2638)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115C #4E5C11
analogous
#11295C #1F115C #45115C
triadic
#1F115C #5C1F11 #115C1F
tetradic
#1F115C #5C1129 #4E5C11 #115C45
square
#1F115C #5C1129 #4E5C11 #115C45
split-complementary
#1F115C #5C4511 #295C11
monochromatic
#09051A #0E0728 #1F115C #301B90 #4224C3

Accessibility & contrast

On white

16.24
#1F115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F115C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115C#FFFFFF#000000##FFFFFF
##1F115C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f115c;
/* rgb */ color: rgb(31, 17, 92);
/* oklch */ color: oklch(25.8% 0.124 281.8);
Tailwind
colors: {
  custom: {
    50: '#64518b',
    500: '#1f115c',
    950: '#000000',
  },
}
SCSS
$custom: #1f115c;
$custom-light: #64518b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115c",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 251.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25804,
    "c": 0.12404,
    "h": 281.8
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F115C

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

Preview Lab → · Contrast checker → · Palette generator →

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