#1F0A45#1F0A45

#1F0A45 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.101 H 292.3°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#1F0A45
RGBrgb(31, 10, 69)
HSLhsl(261, 75%, 15%)
HSVhsv(261, 86%, 27%)
CMYKcmyk(55.1%, 85.5%, 0%, 72.9%)
CIE-LABlab(8.46, 26.52, -32.72)
CIE-LCHlch(8.46, 42.11, 309.03°)
OKLaboklab(22.29% 0.0385 -0.0939)
OKLCHoklch(22.29% 0.101 292.3)
XYZxyz(1.7475, 0.9380, 5.7180)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A45 #30450A
analogous
#0A1245 #1F0A45 #3C0A45
triadic
#1F0A45 #451F0A #0A451F
tetradic
#1F0A45 #450A12 #30450A #0A453C
square
#1F0A45 #450A12 #30450A #0A453C
split-complementary
#1F0A45 #453C0A #12450A
monochromatic
#0C041B #0C041B #1F0A45 #37127A #4F19B0

Accessibility & contrast

On white

17.68
#1F0A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1F0A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A45
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A45#FFFFFF#000000##FFFFFF
##1F0A451.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001744
Tritanopia (blue-blind)
#131A27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0a45;
/* rgb */ color: rgb(31, 10, 69);
/* oklch */ color: oklch(22.3% 0.101 292.3);
Tailwind
colors: {
  custom: {
    50: '#604c79',
    500: '#1f0a45',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a45;
$custom-light: #604c79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a45",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 261.356,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22287,
    "c": 0.10149,
    "h": 292.3
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#1F0A45
secondary
#628229
accent
#F136AF
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0A45

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

Preview Lab → · Contrast checker → · Palette generator →

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