#1F105A#1F105A

#1F105A is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.4% C 0.122 H 282.6°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#1F105A
RGBrgb(31, 16, 90)
HSLhsl(252, 70%, 21%)
HSVhsv(252, 82%, 35%)
CMYKcmyk(65.6%, 82.2%, 0%, 64.7%)
CIE-LABlab(11.96, 30.06, -41.44)
CIE-LCHlch(11.96, 51.20, 305.96°)
OKLaboklab(25.44% 0.0268 -0.1195)
OKLCHoklch(25.44% 0.122 282.6)
XYZxyz(2.5953, 1.3999, 9.8043)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F105A #4B5A10
analogous
#10265A #1F105A #44105A
triadic
#1F105A #5A1F10 #105A1F
tetradic
#1F105A #5A1026 #4B5A10 #105A44
square
#1F105A #5A1026 #4B5A10 #105A44
split-complementary
#1F105A #5A4410 #265A10
monochromatic
#09051A #0D0726 #1F105A #31198E #4322C2

Accessibility & contrast

On white

16.41
#1F105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F105A
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F105A#FFFFFF#000000##FFFFFF
##1F105A1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002534
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f105a;
/* rgb */ color: rgb(31, 16, 90);
/* oklch */ color: oklch(25.4% 0.122 282.6);
Tailwind
colors: {
  custom: {
    50: '#64508a',
    500: '#1f105a',
    950: '#000000',
  },
}
SCSS
$custom: #1f105a;
$custom-light: #64508a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f105a",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 252.162,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25438,
    "c": 0.12246,
    "h": 282.6
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F105A

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

Preview Lab → · Contrast checker → · Palette generator →

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