#1F105E#1F105E

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

Color values

HEX#1F105E
RGBrgb(31, 16, 94)
HSLhsl(252, 71%, 22%)
HSVhsv(252, 83%, 37%)
CMYKcmyk(67%, 83%, 0%, 63.1%)
CIE-LABlab(12.41, 31.39, -43.37)
CIE-LCHlch(12.41, 53.54, 305.90°)
OKLaboklab(25.9% 0.0256 -0.1251)
OKLCHoklch(25.9% 0.128 281.5)
XYZxyz(2.7701, 1.4698, 10.7252)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F105E #4F5E10
analogous
#10285E #1F105E #46105E
triadic
#1F105E #5E1F10 #105E1F
tetradic
#1F105E #5E1028 #4F5E10 #105E46
square
#1F105E #5E1028 #4F5E10 #105E46
split-complementary
#1F105E #5E4610 #285E10
monochromatic
#09041A #0E072A #1F105E #301992 #4122C7

Accessibility & contrast

On white

16.23
#1F105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F105E
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F105E#FFFFFF#000000##FFFFFF
##1F105E1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f105e;
/* rgb */ color: rgb(31, 16, 94);
/* oklch */ color: oklch(25.9% 0.128 281.5);
Tailwind
colors: {
  custom: {
    50: '#65518d',
    500: '#1f105e',
    950: '#000000',
  },
}
SCSS
$custom: #1f105e;
$custom-light: #65518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f105e",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 251.538,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25895,
    "c": 0.12772,
    "h": 281.5
  },
  "luminance": 0.0147
}

Semantic roles & 50–950 ramp

primary
#1F105E
secondary
#849733
accent
#EE3ACB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F105E

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

Preview Lab → · Contrast checker → · Palette generator →

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