#1F105C#1F105C

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

Color values

HEX#1F105C
RGBrgb(31, 16, 92)
HSLhsl(252, 70%, 21%)
HSVhsv(252, 83%, 36%)
CMYKcmyk(66.3%, 82.6%, 0%, 63.9%)
CIE-LABlab(12.18, 30.73, -42.41)
CIE-LCHlch(12.18, 52.37, 305.92°)
OKLaboklab(25.67% 0.0262 -0.1223)
OKLCHoklch(25.67% 0.125 282.1)
XYZxyz(2.6815, 1.4344, 10.2587)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F105C #4D5C10
analogous
#10275C #1F105C #45105C
triadic
#1F105C #5C1F10 #105C1F
tetradic
#1F105C #5C1027 #4D5C10 #105C45
square
#1F105C #5C1027 #4D5C10 #105C45
split-complementary
#1F105C #5C4510 #275C10
monochromatic
#09051A #0D0728 #1F105C #311990 #4222C4

Accessibility & contrast

On white

16.32
#1F105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F105C
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F105C#FFFFFF#000000##FFFFFF
##1F105C1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f105c;
/* rgb */ color: rgb(31, 16, 92);
/* oklch */ color: oklch(25.7% 0.125 282.1);
Tailwind
colors: {
  custom: {
    50: '#64508b',
    500: '#1f105c',
    950: '#000000',
  },
}
SCSS
$custom: #1f105c;
$custom-light: #64508b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f105c",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 251.842,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25666,
    "c": 0.1251,
    "h": 282.1
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#1F105C
secondary
#829533
accent
#ED3BCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F105C

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

Preview Lab → · Contrast checker → · Palette generator →

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