#1F113F#1F113F

#1F113F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.8% C 0.083 H 292.5°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#1F113F
RGBrgb(31, 17, 63)
HSLhsl(258, 58%, 16%)
HSVhsv(258, 73%, 25%)
CMYKcmyk(50.8%, 73%, 0%, 75.3%)
CIE-LABlab(9.41, 20.27, -26.93)
CIE-LCHlch(9.41, 33.70, 306.97°)
OKLaboklab(22.78% 0.0319 -0.0769)
OKLCHoklch(22.78% 0.083 292.5)
XYZxyz(1.6625, 1.0510, 4.8169)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F113F #313F11
analogous
#111A3F #1F113F #36113F
triadic
#1F113F #3F1F11 #113F1F
tetradic
#1F113F #3F111A #313F11 #113F36
square
#1F113F #3F111A #313F11 #113F36
split-complementary
#1F113F #3F3611 #1A3F11
monochromatic
#0C0718 #0C0718 #1F113F #371E6F #4E2B9F

Accessibility & contrast

On white

17.35
#1F113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F113F
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F113F#FFFFFF#000000##FFFFFF
##1F113F1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#161C26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f113f;
/* rgb */ color: rgb(31, 17, 63);
/* oklch */ color: oklch(22.8% 0.083 292.5);
Tailwind
colors: {
  custom: {
    50: '#5e5074',
    500: '#1f113f',
    950: '#000000',
  },
}
SCSS
$custom: #1f113f;
$custom-light: #5e5074;
$custom-dark: #000000;
JSON
{
  "hex": "#1f113f",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 258.261,
    "s": 57.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22777,
    "c": 0.08332,
    "h": 292.5
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

primary
#1F113F
secondary
#637833
accent
#E147B2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #1F113F

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

Preview Lab → · Contrast checker → · Palette generator →

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