#291F70#291F70

#291F70 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.133 H 280.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#291F70
RGBrgb(41, 31, 112)
HSLhsl(247, 57%, 28%)
HSVhsv(247, 72%, 44%)
CMYKcmyk(63.4%, 72.3%, 0%, 56.1%)
CIE-LABlab(18.46, 30.03, -45.25)
CIE-LCHlch(18.46, 54.31, 303.57°)
OKLaboklab(30.99% 0.0251 -0.1304)
OKLCHoklch(30.99% 0.133 280.9)
XYZxyz(4.3281, 2.6209, 15.6039)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F70 #66701F
analogous
#1F3E70 #291F70 #511F70
triadic
#291F70 #70291F #1F7029
tetradic
#291F70 #701F3E #66701F #1F7051
square
#291F70 #701F3E #66701F #1F7051
split-complementary
#291F70 #70511F #3E701F
monochromatic
#090718 #171240 #291F70 #3B2CA0 #513FCA

Accessibility & contrast

On white

13.78
#291F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#291F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F70
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F70#FFFFFF#000000##FFFFFF
##291F701.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291f70;
/* rgb */ color: rgb(41, 31, 112);
/* oklch */ color: oklch(31.0% 0.133 280.9);
Tailwind
colors: {
  custom: {
    50: '#6c5c9a',
    500: '#291f70',
    950: '#000000',
  },
}
SCSS
$custom: #291f70;
$custom-light: #6c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#291f70",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 247.407,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3099,
    "c": 0.1328,
    "h": 280.9
  },
  "luminance": 0.02621
}

Semantic roles & 50–950 ramp

primary
#291F70
secondary
#98A447
accent
#E048CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #291F70

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

Preview Lab → · Contrast checker → · Palette generator →

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