#1F104D#1F104D

#1F104D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.105 H 286.9°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#1F104D
RGBrgb(31, 16, 77)
HSLhsl(255, 66%, 18%)
HSVhsv(255, 79%, 30%)
CMYKcmyk(59.7%, 79.2%, 0%, 69.8%)
CIE-LABlab(10.54, 25.67, -34.90)
CIE-LCHlch(10.54, 43.32, 306.34°)
OKLaboklab(24.01% 0.0304 -0.1003)
OKLCHoklch(24.01% 0.105 286.9)
XYZxyz(2.0895, 1.1976, 7.1408)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F104D #3E4D10
analogous
#101F4D #1F104D #3D104D
triadic
#1F104D #4D1F10 #104D1F
tetradic
#1F104D #4D101F #3E4D10 #104D3D
square
#1F104D #4D101F #3E4D10 #104D3D
split-complementary
#1F104D #4D3D10 #1F4D10
monochromatic
#0A0519 #0B051A #1F104D #331B80 #4825B2

Accessibility & contrast

On white

16.94
#1F104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F104D
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F104D#FFFFFF#000000##FFFFFF
##1F104D1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#0C202D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f104d;
/* rgb */ color: rgb(31, 16, 77);
/* oklch */ color: oklch(24.0% 0.105 286.9);
Tailwind
colors: {
  custom: {
    50: '#61507f',
    500: '#1f104d',
    950: '#000000',
  },
}
SCSS
$custom: #1f104d;
$custom-light: #61507f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f104d",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 254.754,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2401,
    "c": 0.10486,
    "h": 286.9
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#1F104D
secondary
#728732
accent
#E93FBF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F104D

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

Preview Lab → · Contrast checker → · Palette generator →

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