#1F1256#1F1256

#1F1256 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.115 H 283.3°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#1F1256
RGBrgb(31, 18, 86)
HSLhsl(251, 65%, 20%)
HSVhsv(251, 79%, 34%)
CMYKcmyk(64%, 79.1%, 0%, 66.3%)
CIE-LABlab(11.93, 27.53, -38.78)
CIE-LCHlch(11.93, 47.56, 305.37°)
OKLaboklab(25.29% 0.0263 -0.1117)
OKLCHoklch(25.29% 0.115 283.3)
XYZxyz(2.4606, 1.3956, 8.9420)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1256 #495612
analogous
#122756 #1F1256 #411256
triadic
#1F1256 #561F12 #12561F
tetradic
#1F1256 #561227 #495612 #125641
square
#1F1256 #561227 #495612 #125641
split-complementary
#1F1256 #564112 #275612
monochromatic
#090519 #0D0723 #1F1256 #311D89 #4327BB

Accessibility & contrast

On white

16.42
#1F1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1256
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1256#FFFFFF#000000##FFFFFF
##1F12561.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001D55
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f1256;
/* rgb */ color: rgb(31, 18, 86);
/* oklch */ color: oklch(25.3% 0.115 283.3);
Tailwind
colors: {
  custom: {
    50: '#635186',
    500: '#1f1256',
    950: '#000000',
  },
}
SCSS
$custom: #1f1256;
$custom-light: #635186;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1256",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 251.471,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25285,
    "c": 0.1148,
    "h": 283.3
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#1F1256
secondary
#7E8F35
accent
#E83FC8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F1256

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

Preview Lab → · Contrast checker → · Palette generator →

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