#1F133D#1F133D

#1F133D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.077 H 292.4°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#1F133D
RGBrgb(31, 19, 61)
HSLhsl(257, 53%, 16%)
HSVhsv(257, 69%, 24%)
CMYKcmyk(49.2%, 68.9%, 0%, 76.1%)
CIE-LABlab(9.75, 18.21, -24.95)
CIE-LCHlch(9.75, 30.89, 306.13°)
OKLaboklab(22.97% 0.0294 -0.0711)
OKLCHoklch(22.97% 0.077 292.4)
XYZxyz(1.6400, 1.0939, 4.5387)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F133D #313D13
analogous
#131C3D #1F133D #34133D
triadic
#1F133D #3D1F13 #133D1F
tetradic
#1F133D #3D131C #313D13 #133D34
square
#1F133D #3D131C #313D13 #133D34
split-complementary
#1F133D #3D3413 #1C3D13
monochromatic
#0C0717 #0C0717 #1F133D #37226C #4E309A

Accessibility & contrast

On white

17.23
#1F133D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1F133D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F133D
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F133D#FFFFFF#000000##FFFFFF
##1F133D1.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#001A3C
Tritanopia (blue-blind)
#171C25
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f133d;
/* rgb */ color: rgb(31, 19, 61);
/* oklch */ color: oklch(23.0% 0.077 292.4);
Tailwind
colors: {
  custom: {
    50: '#5d5173',
    500: '#1f133d',
    950: '#000000',
  },
}
SCSS
$custom: #1f133d;
$custom-light: #5d5173;
$custom-dark: #000000;
JSON
{
  "hex": "#1f133d",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 61
  },
  "hsl": {
    "h": 257.143,
    "s": 52.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.22969,
    "c": 0.07697,
    "h": 292.4
  },
  "luminance": 0.01094
}

Semantic roles & 50–950 ramp

primary
#1F133D
secondary
#637536
accent
#DC4CB3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1F133D

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

Preview Lab → · Contrast checker → · Palette generator →

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