#1F102F#1F102F

#1F102F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.2% C 0.061 H 304.0°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#1F102F
RGBrgb(31, 16, 47)
HSLhsl(269, 49%, 12%)
HSVhsv(269, 66%, 18%)
CMYKcmyk(34%, 66%, 0%, 81.6%)
CIE-LABlab(7.83, 15.71, -17.87)
CIE-LCHlch(7.83, 23.80, 311.32°)
OKLaboklab(21.2% 0.034 -0.0503)
OKLCHoklch(21.2% 0.061 304)
XYZxyz(1.2633, 0.8671, 2.7896)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F102F #202F10
analogous
#10112F #1F102F #2E102F
triadic
#1F102F #2F1F10 #102F1F
tetradic
#1F102F #2F1011 #202F10 #102F2E
square
#1F102F #2F1011 #202F10 #102F2E
split-complementary
#1F102F #2F2E10 #112F10
monochromatic
#0F0817 #0F0817 #1F102F #3D205D #5B2F8A

Accessibility & contrast

On white

17.90
#1F102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F102F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F102F
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F102F#FFFFFF#000000##FFFFFF
##1F102F1.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061730
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#1C161D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f102f;
/* rgb */ color: rgb(31, 16, 47);
/* oklch */ color: oklch(21.2% 0.061 304.0);
Tailwind
colors: {
  custom: {
    50: '#5c4e67',
    500: '#1f102f',
    950: '#000000',
  },
}
SCSS
$custom: #1f102f;
$custom-light: #5c4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f102f",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 269.032,
    "s": 49.206,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21204,
    "c": 0.06075,
    "h": 304
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#1F102F
secondary
#4E6833
accent
#D94F96
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1F102F

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

Preview Lab → · Contrast checker → · Palette generator →

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