#291263#291263

#291263 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.131 H 287.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#291263
RGBrgb(41, 18, 99)
HSLhsl(257, 69%, 23%)
HSVhsv(257, 82%, 39%)
CMYKcmyk(58.6%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.43, 33.31, -43.35)
CIE-LCHlch(14.43, 54.67, 307.53°)
OKLaboklab(27.73% 0.0392 -0.1248)
OKLCHoklch(27.73% 0.131 287.5)
XYZxyz(3.3822, 1.8047, 11.9721)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291263 #4C6312
analogous
#122363 #291263 #511263
triadic
#291263 #632912 #126329
tetradic
#291263 #631223 #4C6312 #126351
square
#291263 #631223 #4C6312 #126351
split-complementary
#291263 #635112 #236312
monochromatic
#0B051A #14092F #291263 #3E1B97 #5425CB

Accessibility & contrast

On white

15.43
#291263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#291263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291263
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291263#FFFFFF#000000##FFFFFF
##2912631.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002665
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#10293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291263;
/* rgb */ color: rgb(41, 18, 99);
/* oklch */ color: oklch(27.7% 0.131 287.5);
Tailwind
colors: {
  custom: {
    50: '#6b5390',
    500: '#291263',
    950: '#000000',
  },
}
SCSS
$custom: #291263;
$custom-light: #6b5390;
$custom-dark: #000000;
JSON
{
  "hex": "#291263",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 257.037,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27729,
    "c": 0.13079,
    "h": 287.5
  },
  "luminance": 0.01805
}

Semantic roles & 50–950 ramp

primary
#291263
secondary
#7E9B36
accent
#EC3CBA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #291263

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

Preview Lab → · Contrast checker → · Palette generator →

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