#291674#291674

#291674 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.148 H 282.1°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#291674
RGBrgb(41, 22, 116)
HSLhsl(252, 68%, 27%)
HSVhsv(252, 81%, 45%)
CMYKcmyk(64.7%, 81%, 0%, 54.5%)
CIE-LABlab(17.02, 36.57, -50.21)
CIE-LCHlch(17.02, 62.11, 306.07°)
OKLaboklab(30.1% 0.031 -0.1448)
OKLCHoklch(30.1% 0.148 282.1)
XYZxyz(4.3528, 2.3059, 16.7353)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291674 #617416
analogous
#163274 #291674 #581674
triadic
#291674 #742916 #167429
tetradic
#291674 #741632 #617416 #167458
square
#291674 #741632 #617416 #167458
split-complementary
#291674 #745816 #327416
monochromatic
#09051A #170C41 #291674 #3B20A7 #502DD7

Accessibility & contrast

On white

14.37
#291674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#291674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291674
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291674#FFFFFF#000000##FFFFFF
##2916741.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291674;
/* rgb */ color: rgb(41, 22, 116);
/* oklch */ color: oklch(30.1% 0.148 282.1);
Tailwind
colors: {
  custom: {
    50: '#6e569d',
    500: '#291674',
    950: '#000000',
  },
}
SCSS
$custom: #291674;
$custom-light: #6e569d;
$custom-dark: #000000;
JSON
{
  "hex": "#291674",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 252.128,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.14811,
    "h": 282.1
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#291674
secondary
#94AA3C
accent
#EB3DC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291674

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

Preview Lab → · Contrast checker → · Palette generator →

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