#1F1237#1F1237

#1F1237 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.069 H 296.5°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#1F1237
RGBrgb(31, 18, 55)
HSLhsl(261, 51%, 14%)
HSVhsv(261, 67%, 22%)
CMYKcmyk(43.6%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.99, 16.89, -21.87)
CIE-LCHlch(8.99, 27.63, 307.68°)
OKLaboklab(22.25% 0.031 -0.0621)
OKLCHoklch(22.25% 0.069 296.5)
XYZxyz(1.4708, 0.9997, 3.7292)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1237 #2A3712
analogous
#121837 #1F1237 #321237
triadic
#1F1237 #371F12 #12371F
tetradic
#1F1237 #371218 #2A3712 #123732
square
#1F1237 #371218 #2A3712 #123732
split-complementary
#1F1237 #373212 #183712
monochromatic
#0D0817 #0D0817 #1F1237 #392165 #533093

Accessibility & contrast

On white

17.50
#1F1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1237
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1237#FFFFFF#000000##FFFFFF
##1F12371.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A38
Deuteranopia (green-blind)
#051936
Tritanopia (blue-blind)
#191A22
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f1237;
/* rgb */ color: rgb(31, 18, 55);
/* oklch */ color: oklch(22.3% 0.069 296.5);
Tailwind
colors: {
  custom: {
    50: '#5d506e',
    500: '#1f1237',
    950: '#000000',
  },
}
SCSS
$custom: #1f1237;
$custom-light: #5d506e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1237",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 261.081,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22254,
    "c": 0.06939,
    "h": 296.5
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#1F1237
secondary
#5B7035
accent
#DA4EA9
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #1F1237

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

Preview Lab → · Contrast checker → · Palette generator →

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