#291A7F#291A7F

#291A7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.158 H 279.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#291A7F
RGBrgb(41, 26, 127)
HSLhsl(249, 66%, 30%)
HSVhsv(249, 80%, 50%)
CMYKcmyk(67.7%, 79.5%, 0%, 50.2%)
CIE-LABlab(18.98, 37.98, -54.01)
CIE-LCHlch(18.98, 66.02, 305.11°)
OKLaboklab(31.83% 0.0253 -0.1559)
OKLCHoklch(31.83% 0.158 279.2)
XYZxyz(5.1134, 2.7421, 20.3344)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291A7F #707F1A
analogous
#1A3D7F #291A7F #5C1A7F
triadic
#291A7F #7F291A #1A7F29
tetradic
#291A7F #7F1A3D #707F1A #1A7F5C
square
#291A7F #7F1A3D #707F1A #1A7F5C
split-complementary
#291A7F #7F5C1A #3D7F1A
monochromatic
#080519 #19104C #291A7F #3924B2 #533CD7

Accessibility & contrast

On white

13.56
#291A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291A7F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291A7F#FFFFFF#000000##FFFFFF
##291A7F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291a7f;
/* rgb */ color: rgb(41, 26, 127);
/* oklch */ color: oklch(31.8% 0.158 279.2);
Tailwind
colors: {
  custom: {
    50: '#7059a5',
    500: '#291a7f',
    950: '#000000',
  },
}
SCSS
$custom: #291a7f;
$custom-light: #7059a5;
$custom-dark: #000000;
JSON
{
  "hex": "#291a7f",
  "rgb": {
    "r": 41,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 248.911,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.31833,
    "c": 0.158,
    "h": 279.2
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#291A7F
secondary
#A2B342
accent
#E93FD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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