#291796#291796

#291796 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.188 H 276.1°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#291796
RGBrgb(41, 23, 150)
HSLhsl(249, 73%, 34%)
HSVhsv(249, 85%, 59%)
CMYKcmyk(72.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.15, 46.65, -64.81)
CIE-LCHlch(21.15, 79.85, 305.75°)
OKLaboklab(34.13% 0.0199 -0.1873)
OKLCHoklch(34.13% 0.188 276.1)
XYZxyz(6.7241, 3.2856, 29.1281)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291796 #849617
analogous
#174596 #291796 #691796
triadic
#291796 #962917 #179629
tetradic
#291796 #961745 #849617 #179669
square
#291796 #961745 #849617 #179669
split-complementary
#291796 #966917 #459617
monochromatic
#0C072C #1A0F61 #291796 #381FCB #5B45E2

Accessibility & contrast

On white

12.67
#291796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#291796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291796
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291796#FFFFFF#000000##FFFFFF
##2917961.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002D94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291796;
/* rgb */ color: rgb(41, 23, 150);
/* oklch */ color: oklch(34.1% 0.188 276.1);
Tailwind
colors: {
  custom: {
    50: '#7659b6',
    500: '#291796',
    950: '#000000',
  },
}
SCSS
$custom: #291796;
$custom-light: #7659b6;
$custom-dark: #000000;
JSON
{
  "hex": "#291796",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 248.504,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34126,
    "c": 0.18837,
    "h": 276.1
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#291796
secondary
#B2C345
accent
#F038D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291796

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

Preview Lab → · Contrast checker → · Palette generator →

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