#1F0C53#1F0C53

#1F0C53 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.118 H 285.8°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#1F0C53
RGBrgb(31, 12, 83)
HSLhsl(256, 75%, 19%)
HSVhsv(256, 86%, 33%)
CMYKcmyk(62.7%, 85.5%, 0%, 67.5%)
CIE-LABlab(10.40, 29.94, -39.25)
CIE-LCHlch(10.40, 49.37, 307.33°)
OKLaboklab(24.11% 0.032 -0.1131)
OKLCHoklch(24.11% 0.118 285.8)
XYZxyz(2.2574, 1.1786, 8.2905)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0C53 #40530C
analogous
#0C1C53 #1F0C53 #420C53
triadic
#1F0C53 #531F0C #0C531F
tetradic
#1F0C53 #530C1C #40530C #0C5342
square
#1F0C53 #530C1C #40530C #0C5342
split-complementary
#1F0C53 #53420C #1C530C
monochromatic
#0A041B #0B041E #1F0C53 #331488 #471BBE

Accessibility & contrast

On white

16.99
#1F0C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F0C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0C53
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0C53#FFFFFF#000000##FFFFFF
##1F0C531.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E55
Deuteranopia (green-blind)
#001A52
Tritanopia (blue-blind)
#05212F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f0c53;
/* rgb */ color: rgb(31, 12, 83);
/* oklch */ color: oklch(24.1% 0.118 285.8);
Tailwind
colors: {
  custom: {
    50: '#634e84',
    500: '#1f0c53',
    950: '#000000',
  },
}
SCSS
$custom: #1f0c53;
$custom-light: #634e84;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0c53",
  "rgb": {
    "r": 31,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 256.056,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2411,
    "c": 0.11751,
    "h": 285.8
  },
  "luminance": 0.01179
}

Semantic roles & 50–950 ramp

primary
#1F0C53
secondary
#748E2D
accent
#F136BF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06010B
muted
#7A777C

Preview Lab

Preview with #1F0C53

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

Preview Lab → · Contrast checker → · Palette generator →

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