#291FA7#291FA7

#291FA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.202 H 273.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#291FA7
RGBrgb(41, 31, 167)
HSLhsl(244, 69%, 39%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(75.4%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.45, 48.16, -69.73)
CIE-LCHlch(24.45, 84.74, 304.63°)
OKLaboklab(36.99% 0.0124 -0.2017)
OKLCHoklch(36.99% 0.202 273.5)
XYZxyz(8.3772, 4.2405, 36.9287)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291FA7 #9DA71F
analogous
#1F59A7 #291FA7 #6D1FA7
triadic
#291FA7 #A7291F #1FA729
tetradic
#291FA7 #A71F59 #9DA71F #1FA76D
square
#291FA7 #A71F59 #9DA71F #1FA76D
split-complementary
#291FA7 #A76D1F #59A71F
monochromatic
#100C40 #1C1573 #291FA7 #382BD8 #695FE1

Accessibility & contrast

On white

11.36
#291FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#291FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291FA7
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291FA7#FFFFFF#000000##FFFFFF
##291FA71.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #291fa7;
/* rgb */ color: rgb(41, 31, 167);
/* oklch */ color: oklch(37.0% 0.202 273.5);
Tailwind
colors: {
  custom: {
    50: '#795fc3',
    500: '#291fa7',
    950: '#000000',
  },
}
SCSS
$custom: #291fa7;
$custom-light: #795fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#291fa7",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 244.412,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.2021,
    "h": 273.5
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#291FA7
secondary
#BEC65C
accent
#EC3CDF
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #291FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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