#291F74#291F74

#291F74 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.138 H 280.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#291F74
RGBrgb(41, 31, 116)
HSLhsl(247, 58%, 29%)
HSVhsv(247, 73%, 45%)
CMYKcmyk(64.7%, 73.3%, 0%, 54.5%)
CIE-LABlab(18.85, 31.40, -47.19)
CIE-LCHlch(18.85, 56.68, 303.64°)
OKLaboklab(31.39% 0.0244 -0.1361)
OKLCHoklch(31.39% 0.138 280.2)
XYZxyz(4.5558, 2.7120, 16.8030)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F74 #6A741F
analogous
#1F4074 #291F74 #541F74
triadic
#291F74 #74291F #1F7429
tetradic
#291F74 #741F40 #6A741F #1F7454
square
#291F74 #741F40 #6A741F #1F7454
split-complementary
#291F74 #74541F #40741F
monochromatic
#090618 #181244 #291F74 #3A2CA4 #5241CC

Accessibility & contrast

On white

13.62
#291F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#291F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F74
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F74#FFFFFF#000000##FFFFFF
##291F741.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291f74;
/* rgb */ color: rgb(41, 31, 116);
/* oklch */ color: oklch(31.4% 0.138 280.2);
Tailwind
colors: {
  custom: {
    50: '#6d5c9d',
    500: '#291f74',
    950: '#000000',
  },
}
SCSS
$custom: #291f74;
$custom-light: #6d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#291f74",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 247.059,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31393,
    "c": 0.13824,
    "h": 280.2
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#291F74
secondary
#9CA847
accent
#E147CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #291F74

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

Preview Lab → · Contrast checker → · Palette generator →

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