#291F98#291F98

#291F98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.184 H 275.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#291F98
RGBrgb(41, 31, 152)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 80%, 60%)
CMYKcmyk(73%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.72, 43.40, -63.46)
CIE-LCHlch(22.72, 76.88, 304.37°)
OKLaboklab(35.28% 0.0162 -0.1835)
OKLCHoklch(35.28% 0.184 275)
XYZxyz(7.0701, 3.7177, 30.0447)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F98 #8E981F
analogous
#1F5198 #291F98 #651F98
triadic
#291F98 #98291F #1F9829
tetradic
#291F98 #981F51 #8E981F #1F9865
square
#291F98 #981F51 #8E981F #1F9865
split-complementary
#291F98 #98651F #51981F
monochromatic
#0E0A32 #1B1565 #291F98 #3729CB #6055DC

Accessibility & contrast

On white

12.04
#291F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#291F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F98
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F98#FFFFFF#000000##FFFFFF
##291F981.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #291f98;
/* rgb */ color: rgb(41, 31, 152);
/* oklch */ color: oklch(35.3% 0.184 275.0);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#291f98',
    950: '#000000',
  },
}
SCSS
$custom: #291f98;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#291f98",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 244.959,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.18421,
    "h": 275
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#291F98
secondary
#B7C053
accent
#E93FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291F98

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

Preview Lab → · Contrast checker → · Palette generator →

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