#291FA0#291FA0

#291FA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.194 H 274.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#291FA0
RGBrgb(41, 31, 160)
HSLhsl(245, 68%, 37%)
HSVhsv(245, 81%, 63%)
CMYKcmyk(74.4%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.63, 45.96, -66.83)
CIE-LCHlch(23.63, 81.11, 304.51°)
OKLaboklab(36.19% 0.0142 -0.1933)
OKLCHoklch(36.19% 0.194 274.2)
XYZxyz(7.7475, 3.9887, 33.6125)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291FA0 #96A01F
analogous
#1F56A0 #291FA0 #691FA0
triadic
#291FA0 #A0291F #1FA029
tetradic
#291FA0 #A01F56 #96A01F #1FA069
square
#291FA0 #A01F56 #96A01F #1FA069
split-complementary
#291FA0 #A0691F #56A01F
monochromatic
#0F0B39 #1C156D #291FA0 #3629D3 #655ADF

Accessibility & contrast

On white

11.68
#291FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#291FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291FA0
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291FA0#FFFFFF#000000##FFFFFF
##291FA01.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #291fa0;
/* rgb */ color: rgb(41, 31, 160);
/* oklch */ color: oklch(36.2% 0.194 274.2);
Tailwind
colors: {
  custom: {
    50: '#775ebd',
    500: '#291fa0',
    950: '#000000',
  },
}
SCSS
$custom: #291fa0;
$custom-light: #775ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#291fa0",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 244.651,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36187,
    "c": 0.19383,
    "h": 274.2
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#291FA0
secondary
#BBC358
accent
#EA3DDD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #291FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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