#1F0A43#1F0A43

#1F0A43 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.099 H 293.3°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#1F0A43
RGBrgb(31, 10, 67)
HSLhsl(262, 74%, 15%)
HSVhsv(262, 85%, 26%)
CMYKcmyk(53.7%, 85.1%, 0%, 73.7%)
CIE-LABlab(8.25, 25.89, -31.66)
CIE-LCHlch(8.25, 40.89, 309.28°)
OKLaboklab(22.07% 0.0391 -0.0908)
OKLCHoklch(22.07% 0.099 293.3)
XYZxyz(1.6865, 0.9136, 5.3966)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0A43 #2E430A
analogous
#0A1243 #1F0A43 #3B0A43
triadic
#1F0A43 #431F0A #0A431F
tetradic
#1F0A43 #430A12 #2E430A #0A433B
square
#1F0A43 #430A12 #2E430A #0A433B
split-complementary
#1F0A43 #433B0A #12430A
monochromatic
#0C041B #0C041B #1F0A43 #381278 #501AAE

Accessibility & contrast

On white

17.75
#1F0A43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#1F0A43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0A43
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0A43#FFFFFF#000000##FFFFFF
##1F0A431.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001742
Tritanopia (blue-blind)
#141A26
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0a43;
/* rgb */ color: rgb(31, 10, 67);
/* oklch */ color: oklch(22.1% 0.099 293.3);
Tailwind
colors: {
  custom: {
    50: '#5f4b78',
    500: '#1f0a43',
    950: '#000000',
  },
}
SCSS
$custom: #1f0a43;
$custom-light: #5f4b78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0a43",
  "rgb": {
    "r": 31,
    "g": 10,
    "b": 67
  },
  "hsl": {
    "h": 262.105,
    "s": 74.026,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22071,
    "c": 0.09887,
    "h": 293.3
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#1F0A43
secondary
#608029
accent
#F137AC
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0A43

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

Preview Lab → · Contrast checker → · Palette generator →

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