#1F1056#1F1056

#1F1056 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.117 H 283.8°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#1F1056
RGBrgb(31, 16, 86)
HSLhsl(253, 69%, 20%)
HSVhsv(253, 81%, 34%)
CMYKcmyk(64%, 81.4%, 0%, 66.3%)
CIE-LABlab(11.51, 28.72, -39.47)
CIE-LCHlch(11.51, 48.81, 306.04°)
OKLaboklab(24.99% 0.028 -0.1137)
OKLCHoklch(24.99% 0.117 283.8)
XYZxyz(2.4296, 1.3336, 8.9317)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1056 #475610
analogous
#102456 #1F1056 #421056
triadic
#1F1056 #561F10 #10561F
tetradic
#1F1056 #561024 #475610 #105642
square
#1F1056 #561024 #475610 #105642
split-complementary
#1F1056 #564210 #245610
monochromatic
#09051A #0C0622 #1F1056 #321A8A #4423BD

Accessibility & contrast

On white

16.58
#1F1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1056
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1056#FFFFFF#000000##FFFFFF
##1F10561.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001C55
Tritanopia (blue-blind)
#012432
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f1056;
/* rgb */ color: rgb(31, 16, 86);
/* oklch */ color: oklch(25.0% 0.117 283.8);
Tailwind
colors: {
  custom: {
    50: '#635086',
    500: '#1f1056',
    950: '#000000',
  },
}
SCSS
$custom: #1f1056;
$custom-light: #635086;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1056",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 252.857,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.24988,
    "c": 0.11714,
    "h": 283.8
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#1F1056
secondary
#7C8F32
accent
#EB3CC6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F1056

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

Preview Lab → · Contrast checker → · Palette generator →

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