#1F115A#1F115A

#1F115A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.6% C 0.121 H 282.4°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#1F115A
RGBrgb(31, 17, 90)
HSLhsl(252, 68%, 21%)
HSVhsv(252, 81%, 35%)
CMYKcmyk(65.6%, 81.1%, 0%, 64.7%)
CIE-LABlab(12.16, 29.49, -41.11)
CIE-LCHlch(12.16, 50.59, 305.65°)
OKLaboklab(25.58% 0.026 -0.1185)
OKLCHoklch(25.58% 0.121 282.4)
XYZxyz(2.6104, 1.4302, 9.8094)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F115A #4C5A11
analogous
#11275A #1F115A #43115A
triadic
#1F115A #5A1F11 #115A1F
tetradic
#1F115A #5A1127 #4C5A11 #115A43
square
#1F115A #5A1127 #4C5A11 #115A43
split-complementary
#1F115A #5A4311 #275A11
monochromatic
#09051A #0D0727 #1F115A #311B8D #4224C1

Accessibility & contrast

On white

16.33
#1F115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F115A
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F115A#FFFFFF#000000##FFFFFF
##1F115A1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f115a;
/* rgb */ color: rgb(31, 17, 90);
/* oklch */ color: oklch(25.6% 0.121 282.4);
Tailwind
colors: {
  custom: {
    50: '#645189',
    500: '#1f115a',
    950: '#000000',
  },
}
SCSS
$custom: #1f115a;
$custom-light: #645189;
$custom-dark: #000000;
JSON
{
  "hex": "#1f115a",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 251.507,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25579,
    "c": 0.12138,
    "h": 282.4
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#1F115A
secondary
#819334
accent
#EB3DCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F115A

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

Preview Lab → · Contrast checker → · Palette generator →

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