#1F0F57#1F0F57

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

Color values

HEX#1F0F57
RGBrgb(31, 15, 87)
HSLhsl(253, 71%, 20%)
HSVhsv(253, 83%, 34%)
CMYKcmyk(64.4%, 82.8%, 0%, 65.9%)
CIE-LABlab(11.42, 29.62, -40.29)
CIE-LCHlch(11.42, 50.01, 306.32°)
OKLaboklab(24.96% 0.0284 -0.1161)
OKLCHoklch(24.96% 0.12 283.8)
XYZxyz(2.4557, 1.3209, 9.1405)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F57 #47570F
analogous
#0F2357 #1F0F57 #430F57
triadic
#1F0F57 #571F0F #0F571F
tetradic
#1F0F57 #570F23 #47570F #0F5743
square
#1F0F57 #570F23 #47570F #0F5743
split-complementary
#1F0F57 #57430F #23570F
monochromatic
#09051A #0C0623 #1F0F57 #32188B #4421BF

Accessibility & contrast

On white

16.61
#1F0F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1F0F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F57
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F57#FFFFFF#000000##FFFFFF
##1F0F571.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002059
Deuteranopia (green-blind)
#001C56
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f0f57;
/* rgb */ color: rgb(31, 15, 87);
/* oklch */ color: oklch(25.0% 0.120 283.8);
Tailwind
colors: {
  custom: {
    50: '#635087',
    500: '#1f0f57',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f57;
$custom-light: #635087;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f57",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 253.333,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.24961,
    "c": 0.11957,
    "h": 283.8
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#1F0F57
secondary
#7C9131
accent
#ED3AC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F57

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

Preview Lab → · Contrast checker → · Palette generator →

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