#291CB4#291CB4

#291CB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.219 H 272.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#291CB4
RGBrgb(41, 28, 180)
HSLhsl(245, 73%, 41%)
HSVhsv(245, 84%, 71%)
CMYKcmyk(77.2%, 84.4%, 0%, 29.4%)
CIE-LABlab(25.55, 53.47, -75.72)
CIE-LCHlch(25.55, 92.70, 305.23°)
OKLaboklab(38.2% 0.0099 -0.219)
OKLCHoklch(38.2% 0.219 272.6)
XYZxyz(9.5652, 4.5962, 43.5542)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291CB4 #A7B41C
analogous
#1C5BB4 #291CB4 #751CB4
triadic
#291CB4 #B4291C #1CB429
tetradic
#291CB4 #B41C5B #A7B41C #1CB475
square
#291CB4 #B41C5B #A7B41C #1CB475
split-complementary
#291CB4 #B4751C #5BB41C
monochromatic
#110C4A #1D147F #291CB4 #3E2FDF #6F64E7

Accessibility & contrast

On white

10.94
#291CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#291CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291CB4
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291CB4#FFFFFF#000000##FFFFFF
##291CB41.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B2
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #291cb4;
/* rgb */ color: rgb(41, 28, 180);
/* oklch */ color: oklch(38.2% 0.219 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ecc',
    500: '#291cb4',
    950: '#000000',
  },
}
SCSS
$custom: #291cb4;
$custom-light: #7c5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#291cb4",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 245.132,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38204,
    "c": 0.21923,
    "h": 272.6
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#291CB4
secondary
#C2CC60
accent
#F038E0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #291CB4

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

Preview Lab → · Contrast checker → · Palette generator →

#291CB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva