#291765#291765

#291765 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.128 H 285.7°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#291765
RGBrgb(41, 23, 101)
HSLhsl(254, 63%, 24%)
HSVhsv(254, 77%, 40%)
CMYKcmyk(59.4%, 77.2%, 0%, 60.4%)
CIE-LABlab(15.61, 31.18, -42.73)
CIE-LCHlch(15.61, 52.90, 306.12°)
OKLaboklab(28.63% 0.0345 -0.123)
OKLCHoklch(28.63% 0.128 285.7)
XYZxyz(3.5691, 2.0236, 12.5119)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291765 #536517
analogous
#172C65 #291765 #501765
triadic
#291765 #652917 #176529
tetradic
#291765 #65172C #536517 #176550
square
#291765 #65172C #536517 #176550
split-complementary
#291765 #655017 #2C6517
monochromatic
#0A0619 #150C33 #291765 #3D2297 #512EC9

Accessibility & contrast

On white

14.95
#291765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#291765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291765
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291765#FFFFFF#000000##FFFFFF
##2917651.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#0D2C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291765;
/* rgb */ color: rgb(41, 23, 101);
/* oklch */ color: oklch(28.6% 0.128 285.7);
Tailwind
colors: {
  custom: {
    50: '#6b5692',
    500: '#291765',
    950: '#000000',
  },
}
SCSS
$custom: #291765;
$custom-light: #6b5692;
$custom-dark: #000000;
JSON
{
  "hex": "#291765",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 253.846,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28625,
    "c": 0.12773,
    "h": 285.7
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#291765
secondary
#859B3C
accent
#E642C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291765

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

Preview Lab → · Contrast checker → · Palette generator →

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