#1F105B#1F105B

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

Color values

HEX#1F105B
RGBrgb(31, 16, 91)
HSLhsl(252, 70%, 21%)
HSVhsv(252, 82%, 36%)
CMYKcmyk(65.9%, 82.4%, 0%, 64.3%)
CIE-LABlab(12.07, 30.39, -41.93)
CIE-LCHlch(12.07, 51.79, 305.94°)
OKLaboklab(25.55% 0.0265 -0.1209)
OKLCHoklch(25.55% 0.124 282.4)
XYZxyz(2.6381, 1.4170, 10.0300)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F105B #4C5B10
analogous
#10265B #1F105B #44105B
triadic
#1F105B #5B1F10 #105B1F
tetradic
#1F105B #5B1026 #4C5B10 #105B44
square
#1F105B #5B1026 #4C5B10 #105B44
split-complementary
#1F105B #5B4410 #265B10
monochromatic
#09051A #0D0727 #1F105B #31198F #4222C3

Accessibility & contrast

On white

16.36
#1F105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F105B
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F105B#FFFFFF#000000##FFFFFF
##1F105B1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.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: #1f105b;
/* rgb */ color: rgb(31, 16, 91);
/* oklch */ color: oklch(25.6% 0.124 282.4);
Tailwind
colors: {
  custom: {
    50: '#64508a',
    500: '#1f105b',
    950: '#000000',
  },
}
SCSS
$custom: #1f105b;
$custom-light: #64508a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f105b",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 252,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25552,
    "c": 0.12379,
    "h": 282.4
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#1F105B
secondary
#819433
accent
#ED3BC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F105B

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

Preview Lab → · Contrast checker → · Palette generator →

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