#1F1058#1F1058

#1F1058 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.120 H 283.2°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1058
RGBrgb(31, 16, 88)
HSLhsl(253, 69%, 20%)
HSVhsv(253, 82%, 35%)
CMYKcmyk(64.8%, 81.8%, 0%, 65.5%)
CIE-LABlab(11.73, 29.39, -40.46)
CIE-LCHlch(11.73, 50.01, 305.99°)
OKLaboklab(25.21% 0.0274 -0.1166)
OKLCHoklch(25.21% 0.12 283.2)
XYZxyz(2.5113, 1.3663, 9.3620)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1058 #495810
analogous
#102558 #1F1058 #431058
triadic
#1F1058 #581F10 #10581F
tetradic
#1F1058 #581025 #495810 #105843
square
#1F1058 #581025 #495810 #105843
split-complementary
#1F1058 #584310 #255810
monochromatic
#09051A #0D0724 #1F1058 #31198C #4323C0

Accessibility & contrast

On white

16.49
#1F1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1058
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1058#FFFFFF#000000##FFFFFF
##1F10581.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001D57
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f1058;
/* rgb */ color: rgb(31, 16, 88);
/* oklch */ color: oklch(25.2% 0.120 283.2);
Tailwind
colors: {
  custom: {
    50: '#635088',
    500: '#1f1058',
    950: '#000000',
  },
}
SCSS
$custom: #1f1058;
$custom-light: #635088;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1058",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 252.5,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25212,
    "c": 0.11981,
    "h": 283.2
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#1F1058
secondary
#7E9132
accent
#EC3CC7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F1058

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

Preview Lab → · Contrast checker → · Palette generator →

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