#1F133E#1F133E

#1F133E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.079 H 291.9°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#1F133E
RGBrgb(31, 19, 62)
HSLhsl(257, 53%, 16%)
HSVhsv(257, 69%, 24%)
CMYKcmyk(50%, 69.4%, 0%, 75.7%)
CIE-LABlab(9.84, 18.55, -25.52)
CIE-LCHlch(9.84, 31.55, 306.01°)
OKLaboklab(23.06% 0.0293 -0.0728)
OKLCHoklch(23.06% 0.079 291.9)
XYZxyz(1.6672, 1.1048, 4.6819)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F133E #323E13
analogous
#131C3E #1F133E #34133E
triadic
#1F133E #3E1F13 #133E1F
tetradic
#1F133E #3E131C #323E13 #133E34
square
#1F133E #3E131C #323E13 #133E34
split-complementary
#1F133E #3E3413 #1C3E13
monochromatic
#0C0717 #0C0717 #1F133E #36216D #4E309C

Accessibility & contrast

On white

17.20
#1F133E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F133E
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F133E#FFFFFF#000000##FFFFFF
##1F133E1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#001A3D
Tritanopia (blue-blind)
#161D26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1f133e;
/* rgb */ color: rgb(31, 19, 62);
/* oklch */ color: oklch(23.1% 0.079 291.9);
Tailwind
colors: {
  custom: {
    50: '#5e5174',
    500: '#1f133e',
    950: '#000000',
  },
}
SCSS
$custom: #1f133e;
$custom-light: #5e5174;
$custom-dark: #000000;
JSON
{
  "hex": "#1f133e",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 62
  },
  "hsl": {
    "h": 256.744,
    "s": 53.086,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23059,
    "c": 0.07851,
    "h": 291.9
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#1F133E
secondary
#657736
accent
#DC4BB4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1F133E

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

Preview Lab → · Contrast checker → · Palette generator →

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