#291458#291458

#291458 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 290.8°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#291458
RGBrgb(41, 20, 88)
HSLhsl(259, 63%, 21%)
HSVhsv(259, 77%, 35%)
CMYKcmyk(53.4%, 77.3%, 0%, 65.5%)
CIE-LABlab(13.69, 28.74, -37.21)
CIE-LCHlch(13.69, 47.01, 307.68°)
OKLaboklab(26.86% 0.0405 -0.1068)
OKLCHoklch(26.86% 0.114 290.8)
XYZxyz(2.9256, 1.6762, 9.4000)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291458 #435814
analogous
#142158 #291458 #4B1458
triadic
#291458 #582914 #145829
tetradic
#291458 #581421 #435814 #14584B
square
#291458 #581421 #435814 #14584B
split-complementary
#291458 #584B14 #215814
monochromatic
#0C0619 #120926 #291458 #401F8A #572BBC

Accessibility & contrast

On white

15.73
#291458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#291458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291458
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291458#FFFFFF#000000##FFFFFF
##2914581.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#192634
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #291458;
/* rgb */ color: rgb(41, 20, 88);
/* oklch */ color: oklch(26.9% 0.114 290.8);
Tailwind
colors: {
  custom: {
    50: '#685388',
    500: '#291458',
    950: '#000000',
  },
}
SCSS
$custom: #291458;
$custom-light: #685388;
$custom-dark: #000000;
JSON
{
  "hex": "#291458",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 258.529,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26863,
    "c": 0.11421,
    "h": 290.8
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#291458
secondary
#759038
accent
#E642B3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291458

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

Preview Lab → · Contrast checker → · Palette generator →

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