#1F0F53#1F0F53

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

Color values

HEX#1F0F53
RGBrgb(31, 15, 83)
HSLhsl(254, 69%, 19%)
HSVhsv(254, 82%, 33%)
CMYKcmyk(62.7%, 81.9%, 0%, 67.5%)
CIE-LABlab(10.97, 28.29, -38.31)
CIE-LCHlch(10.97, 47.62, 306.45°)
OKLaboklab(24.51% 0.0297 -0.1103)
OKLCHoklch(24.51% 0.114 285)
XYZxyz(2.2968, 1.2573, 8.3036)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F53 #43530F
analogous
#0F2153 #1F0F53 #410F53
triadic
#1F0F53 #531F0F #0F531F
tetradic
#1F0F53 #530F21 #43530F #0F5341
square
#1F0F53 #530F21 #43530F #0F5341
split-complementary
#1F0F53 #53410F #21530F
monochromatic
#0A051A #0C061F #1F0F53 #321887 #4622BB

Accessibility & contrast

On white

16.78
#1F0F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0F53
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F53#FFFFFF#000000##FFFFFF
##1F0F531.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F55
Deuteranopia (green-blind)
#001B52
Tritanopia (blue-blind)
#052230
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f0f53;
/* rgb */ color: rgb(31, 15, 83);
/* oklch */ color: oklch(24.5% 0.114 285.0);
Tailwind
colors: {
  custom: {
    50: '#624f84',
    500: '#1f0f53',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f53;
$custom-light: #624f84;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f53",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 254.118,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24512,
    "c": 0.11425,
    "h": 285
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#1F0F53
secondary
#778D31
accent
#EC3CC3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1F0F53

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

Preview Lab → · Contrast checker → · Palette generator →

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