#1F105F#1F105F

#1F105F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.0% C 0.129 H 281.3°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#1F105F
RGBrgb(31, 16, 95)
HSLhsl(251, 71%, 22%)
HSVhsv(251, 83%, 37%)
CMYKcmyk(67.4%, 83.2%, 0%, 62.7%)
CIE-LABlab(12.53, 31.72, -43.85)
CIE-LCHlch(12.53, 54.13, 305.88°)
OKLaboklab(26.01% 0.0252 -0.1265)
OKLCHoklch(26.01% 0.129 281.3)
XYZxyz(2.8153, 1.4879, 10.9631)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F105F #505F10
analogous
#10295F #1F105F #47105F
triadic
#1F105F #5F1F10 #105F1F
tetradic
#1F105F #5F1029 #505F10 #105F47
square
#1F105F #5F1029 #505F10 #105F47
split-complementary
#1F105F #5F4710 #295F10
monochromatic
#09041A #0E072B #1F105F #301993 #4122C8

Accessibility & contrast

On white

16.18
#1F105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F105F
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F105F#FFFFFF#000000##FFFFFF
##1F105F1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f105f;
/* rgb */ color: rgb(31, 16, 95);
/* oklch */ color: oklch(26.0% 0.129 281.3);
Tailwind
colors: {
  custom: {
    50: '#65518d',
    500: '#1f105f',
    950: '#000000',
  },
}
SCSS
$custom: #1f105f;
$custom-light: #65518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f105f",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 251.392,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26011,
    "c": 0.12902,
    "h": 281.3
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#1F105F
secondary
#859833
accent
#EE3ACC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F105F

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

Preview Lab → · Contrast checker → · Palette generator →

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