#291E8F#291E8F

#291E8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.174 H 276.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#291E8F
RGBrgb(41, 30, 143)
HSLhsl(246, 65%, 34%)
HSVhsv(246, 79%, 56%)
CMYKcmyk(71.3%, 79%, 0%, 43.9%)
CIE-LABlab(21.51, 41.02, -59.87)
CIE-LCHlch(21.51, 72.58, 304.42°)
OKLaboklab(34.14% 0.0189 -0.1731)
OKLCHoklch(34.14% 0.174 276.2)
XYZxyz(6.3350, 3.3825, 26.3003)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E8F #848F1E
analogous
#1E4C8F #291E8F #621E8F
triadic
#291E8F #8F291E #1E8F29
tetradic
#291E8F #8F1E4C #848F1E #1E8F62
square
#291E8F #8F1E4C #848F1E #1E8F62
split-complementary
#291E8F #8F621E #4C8F1E
monochromatic
#0C092A #1A135C #291E8F #3829C2 #5B4EDA

Accessibility & contrast

On white

12.53
#291E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#291E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291E8F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E8F#FFFFFF#000000##FFFFFF
##291E8F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291e8f;
/* rgb */ color: rgb(41, 30, 143);
/* oklch */ color: oklch(34.1% 0.174 276.2);
Tailwind
colors: {
  custom: {
    50: '#735db1',
    500: '#291e8f',
    950: '#000000',
  },
}
SCSS
$custom: #291e8f;
$custom-light: #735db1;
$custom-dark: #000000;
JSON
{
  "hex": "#291e8f",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 245.841,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.1741,
    "h": 276.2
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#291E8F
secondary
#B2BC4C
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #291E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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