#1F103A#1F103A

#1F103A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.1% C 0.077 H 295.9°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#1F103A
RGBrgb(31, 16, 58)
HSLhsl(261, 57%, 15%)
HSVhsv(261, 72%, 23%)
CMYKcmyk(46.6%, 72.4%, 0%, 77.3%)
CIE-LABlab(8.72, 19.27, -24.47)
CIE-LCHlch(8.72, 31.15, 308.22°)
OKLaboklab(22.13% 0.0338 -0.0697)
OKLCHoklch(22.13% 0.077 295.9)
XYZxyz(1.5139, 0.9673, 4.1091)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F103A #2B3A10
analogous
#10163A #1F103A #34103A
triadic
#1F103A #3A1F10 #103A1F
tetradic
#1F103A #3A1016 #2B3A10 #103A34
square
#1F103A #3A1016 #2B3A10 #103A34
split-complementary
#1F103A #3A3410 #163A10
monochromatic
#0D0718 #0D0718 #1F103A #391D6A #522A9A

Accessibility & contrast

On white

17.60
#1F103A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F103A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F103A
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F103A#FFFFFF#000000##FFFFFF
##1F103A1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#181923
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f103a;
/* rgb */ color: rgb(31, 16, 58);
/* oklch */ color: oklch(22.1% 0.077 295.9);
Tailwind
colors: {
  custom: {
    50: '#5d4f70',
    500: '#1f103a',
    950: '#000000',
  },
}
SCSS
$custom: #1f103a;
$custom-light: #5d4f70;
$custom-dark: #000000;
JSON
{
  "hex": "#1f103a",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 58
  },
  "hsl": {
    "h": 261.429,
    "s": 56.757,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22134,
    "c": 0.07749,
    "h": 295.9
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#1F103A
secondary
#5C7432
accent
#E048AA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #1F103A

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

Preview Lab → · Contrast checker → · Palette generator →

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