#1F113E#1F113E

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

Color values

HEX#1F113E
RGBrgb(31, 17, 62)
HSLhsl(259, 57%, 15%)
HSVhsv(259, 73%, 24%)
CMYKcmyk(50%, 72.6%, 0%, 75.7%)
CIE-LABlab(9.32, 19.93, -26.36)
CIE-LCHlch(9.32, 33.04, 307.09°)
OKLaboklab(22.68% 0.0321 -0.0753)
OKLCHoklch(22.68% 0.082 293.1)
XYZxyz(1.6348, 1.0400, 4.6711)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F113E #303E11
analogous
#11193E #1F113E #35113E
triadic
#1F113E #3E1F11 #113E1F
tetradic
#1F113E #3E1119 #303E11 #113E35
square
#1F113E #3E1119 #303E11 #113E35
split-complementary
#1F113E #3E3511 #193E11
monochromatic
#0C0718 #0C0718 #1F113E #371E6E #4F2B9E

Accessibility & contrast

On white

17.38
#1F113E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1F113E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F113E
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F113E#FFFFFF#000000##FFFFFF
##1F113E1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#161B25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f113e;
/* rgb */ color: rgb(31, 17, 62);
/* oklch */ color: oklch(22.7% 0.082 293.1);
Tailwind
colors: {
  custom: {
    50: '#5e4f74',
    500: '#1f113e',
    950: '#000000',
  },
}
SCSS
$custom: #1f113e;
$custom-light: #5e4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f113e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 62
  },
  "hsl": {
    "h": 258.667,
    "s": 56.962,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22683,
    "c": 0.08182,
    "h": 293.1
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#1F113E
secondary
#627733
accent
#E048B1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1F113E

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

Preview Lab → · Contrast checker → · Palette generator →

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