#1F112E#1F112E

#1F112E is a very dark, muted violet. Relative luminance 0.009; OKLCH L 21.3% C 0.057 H 304.3°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#1F112E
RGBrgb(31, 17, 46)
HSLhsl(269, 46%, 12%)
HSVhsv(269, 63%, 18%)
CMYKcmyk(32.6%, 63%, 0%, 82%)
CIE-LABlab(8.03, 14.69, -16.81)
CIE-LCHlch(8.03, 22.32, 311.16°)
OKLaboklab(21.33% 0.0322 -0.0472)
OKLCHoklch(21.33% 0.057 304.3)
XYZxyz(1.2586, 0.8895, 2.6896)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F112E #202E11
analogous
#11112E #1F112E #2E112E
triadic
#1F112E #2E1F11 #112E1F
tetradic
#1F112E #2E1111 #202E11 #112E2E
square
#1F112E #2E1111 #202E11 #112E2E
split-complementary
#1F112E #2E2E11 #112E11
monochromatic
#0F0816 #0F0816 #1F112E #3D225B #5B3287

Accessibility & contrast

On white

17.83
#1F112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F112E
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F112E#FFFFFF#000000##FFFFFF
##1F112E1.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08172F
Deuteranopia (green-blind)
#0C182D
Tritanopia (blue-blind)
#1C161D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f112e;
/* rgb */ color: rgb(31, 17, 46);
/* oklch */ color: oklch(21.3% 0.057 304.3);
Tailwind
colors: {
  custom: {
    50: '#5c4f67',
    500: '#1f112e',
    950: '#000000',
  },
}
SCSS
$custom: #1f112e;
$custom-light: #5c4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f112e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 268.966,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21331,
    "c": 0.05718,
    "h": 304.3
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#1F112E
secondary
#4E6634
accent
#D65296
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040206
muted
#79787A

Preview Lab

Preview with #1F112E

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

Preview Lab → · Contrast checker → · Palette generator →

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