#291F99#291F99

#291F99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.185 H 274.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#291F99
RGBrgb(41, 31, 153)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 80%, 60%)
CMYKcmyk(73.2%, 79.7%, 0%, 40%)
CIE-LABlab(22.83, 43.73, -63.88)
CIE-LCHlch(22.83, 77.41, 304.39°)
OKLaboklab(35.39% 0.0159 -0.1847)
OKLCHoklch(35.39% 0.185 274.9)
XYZxyz(7.1523, 3.7506, 30.4778)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F99 #8F991F
analogous
#1F5299 #291F99 #661F99
triadic
#291F99 #99291F #1F9929
tetradic
#291F99 #991F52 #8F991F #1F9966
square
#291F99 #991F52 #8F991F #1F9966
split-complementary
#291F99 #99661F #52991F
monochromatic
#0E0A33 #1B1566 #291F99 #3729CC #6156DD

Accessibility & contrast

On white

12.00
#291F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#291F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F99
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F99#FFFFFF#000000##FFFFFF
##291F991.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #291f99;
/* rgb */ color: rgb(41, 31, 153);
/* oklch */ color: oklch(35.4% 0.185 274.9);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#291f99',
    950: '#000000',
  },
}
SCSS
$custom: #291f99;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#291f99",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 244.918,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35391,
    "c": 0.18543,
    "h": 274.9
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#291F99
secondary
#B7C054
accent
#E93FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #291F99

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

Preview Lab → · Contrast checker → · Palette generator →

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