#291945#291945

#291945 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.080 H 297.3°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#291945
RGBrgb(41, 25, 69)
HSLhsl(262, 47%, 18%)
HSVhsv(262, 64%, 27%)
CMYKcmyk(40.6%, 63.8%, 0%, 72.9%)
CIE-LABlab(13.21, 19.48, -24.96)
CIE-LCHlch(13.21, 31.66, 307.97°)
OKLaboklab(26% 0.0366 -0.0708)
OKLCHoklch(26% 0.08 297.3)
XYZxyz(2.3360, 1.5963, 5.8141)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291945 #354519
analogous
#191F45 #291945 #3F1945
triadic
#291945 #452919 #194529
tetradic
#291945 #45191F #354519 #19453F
square
#291945 #45191F #354519 #19453F
split-complementary
#291945 #453F19 #1F4519
monochromatic
#0D0816 #0E0918 #291945 #442972 #5E3A9F

Accessibility & contrast

On white

15.92
#291945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291945 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291945
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291945#FFFFFF#000000##FFFFFF
##2919451.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052246
Deuteranopia (green-blind)
#0A2144
Tritanopia (blue-blind)
#23222C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291945;
/* rgb */ color: rgb(41, 25, 69);
/* oklch */ color: oklch(26.0% 0.080 297.3);
Tailwind
colors: {
  custom: {
    50: '#655679',
    500: '#291945',
    950: '#000000',
  },
}
SCSS
$custom: #291945;
$custom-light: #655679;
$custom-dark: #000000;
JSON
{
  "hex": "#291945",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 69
  },
  "hsl": {
    "h": 261.818,
    "s": 46.809,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25999,
    "c": 0.07966,
    "h": 297.3
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#291945
secondary
#657B3E
accent
#D651A6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #291945

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

Preview Lab → · Contrast checker → · Palette generator →

#291945 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva