#1F103D#1F103D

#1F103D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.082 H 294.1°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#1F103D
RGBrgb(31, 16, 61)
HSLhsl(260, 58%, 15%)
HSVhsv(260, 74%, 24%)
CMYKcmyk(49.2%, 73.8%, 0%, 76.1%)
CIE-LABlab(8.98, 20.26, -26.19)
CIE-LCHlch(8.98, 33.12, 307.72°)
OKLaboklab(22.41% 0.0335 -0.0748)
OKLCHoklch(22.41% 0.082 294.1)
XYZxyz(1.5924, 0.9988, 4.5229)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F103D #2E3D10
analogous
#10173D #1F103D #35103D
triadic
#1F103D #3D1F10 #103D1F
tetradic
#1F103D #3D1017 #2E3D10 #103D35
square
#1F103D #3D1017 #2E3D10 #103D35
split-complementary
#1F103D #3D3510 #173D10
monochromatic
#0C0618 #0C0618 #1F103D #381D6D #50299E

Accessibility & contrast

On white

17.50
#1F103D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F103D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F103D
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F103D#FFFFFF#000000##FFFFFF
##1F103D1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#171A24
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f103d;
/* rgb */ color: rgb(31, 16, 61);
/* oklch */ color: oklch(22.4% 0.082 294.1);
Tailwind
colors: {
  custom: {
    50: '#5e4f73',
    500: '#1f103d',
    950: '#000000',
  },
}
SCSS
$custom: #1f103d;
$custom-light: #5e4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#1f103d",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 61
  },
  "hsl": {
    "h": 260,
    "s": 58.442,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2241,
    "c": 0.08196,
    "h": 294.1
  },
  "luminance": 0.00999
}

Semantic roles & 50–950 ramp

primary
#1F103D
secondary
#607732
accent
#E246AE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1F103D

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

Preview Lab → · Contrast checker → · Palette generator →

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