#1F1052#1F1052

#1F1052 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.112 H 285.1°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#1F1052
RGBrgb(31, 16, 82)
HSLhsl(254, 67%, 19%)
HSVhsv(254, 80%, 32%)
CMYKcmyk(62.2%, 80.5%, 0%, 67.8%)
CIE-LABlab(11.07, 27.37, -37.46)
CIE-LCHlch(11.07, 46.40, 306.15°)
OKLaboklab(24.55% 0.0291 -0.1079)
OKLCHoklch(24.55% 0.112 285.1)
XYZxyz(2.2729, 1.2709, 8.1066)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1052 #435210
analogous
#102252 #1F1052 #401052
triadic
#1F1052 #521F10 #10521F
tetradic
#1F1052 #521022 #435210 #105240
square
#1F1052 #521022 #435210 #105240
split-complementary
#1F1052 #524010 #225210
monochromatic
#0A051A #0C061F #1F1052 #321A85 #4624B8

Accessibility & contrast

On white

16.74
#1F1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1F1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1052
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1052#FFFFFF#000000##FFFFFF
##1F10521.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#062230
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f1052;
/* rgb */ color: rgb(31, 16, 82);
/* oklch */ color: oklch(24.5% 0.112 285.1);
Tailwind
colors: {
  custom: {
    50: '#625083',
    500: '#1f1052',
    950: '#000000',
  },
}
SCSS
$custom: #1f1052;
$custom-light: #625083;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1052",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 253.636,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24547,
    "c": 0.11173,
    "h": 285.1
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#1F1052
secondary
#778C32
accent
#EA3EC3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05020B
muted
#7A787C

Preview Lab

Preview with #1F1052

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

Preview Lab → · Contrast checker → · Palette generator →

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