#1F0945#1F0945

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

Color values

HEX#1F0945
RGBrgb(31, 9, 69)
HSLhsl(262, 77%, 15%)
HSVhsv(262, 87%, 27%)
CMYKcmyk(55.1%, 87%, 0%, 72.9%)
CIE-LABlab(8.27, 27.06, -33.03)
CIE-LCHlch(8.27, 42.70, 309.33°)
OKLaboklab(22.15% 0.0394 -0.0948)
OKLCHoklch(22.15% 0.103 292.6)
XYZxyz(1.7366, 0.9163, 5.7144)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0945 #2F4509
analogous
#091145 #1F0945 #3D0945
triadic
#1F0945 #451F09 #09451F
tetradic
#1F0945 #450911 #2F4509 #09453D
square
#1F0945 #450911 #2F4509 #09453D
split-complementary
#1F0945 #453D09 #114509
monochromatic
#0C041B #0C041B #1F0945 #37107B #5017B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F0945#FFFFFF#000000##FFFFFF
##1F09451.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)
#001947
Deuteranopia (green-blind)
#001744
Tritanopia (blue-blind)
#131A27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #1f0945;
/* rgb */ color: rgb(31, 9, 69);
/* oklch */ color: oklch(22.2% 0.103 292.6);
Tailwind
colors: {
  custom: {
    50: '#604b79',
    500: '#1f0945',
    950: '#000000',
  },
}
SCSS
$custom: #1f0945;
$custom-light: #604b79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0945",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 262,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22154,
    "c": 0.10269,
    "h": 292.6
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#1F0945
secondary
#618327
accent
#F334AD
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1F0945

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

Preview Lab → · Contrast checker → · Palette generator →

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