#291790#291790

#291790 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.181 H 276.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#291790
RGBrgb(41, 23, 144)
HSLhsl(249, 72%, 33%)
HSVhsv(249, 84%, 56%)
CMYKcmyk(71.5%, 84%, 0%, 43.5%)
CIE-LABlab(20.43, 44.83, -62.29)
CIE-LCHlch(20.43, 76.75, 305.74°)
OKLaboklab(33.42% 0.0218 -0.18)
OKLCHoklch(33.42% 0.181 276.9)
XYZxyz(6.2533, 3.0972, 26.6484)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291790 #7E9017
analogous
#174190 #291790 #661790
triadic
#291790 #902917 #179029
tetradic
#291790 #901741 #7E9017 #179066
square
#291790 #901741 #7E9017 #179066
split-complementary
#291790 #906617 #419017
monochromatic
#0B0626 #1A0F5B #291790 #381FC5 #5941E1

Accessibility & contrast

On white

12.97
#291790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#291790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291790
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291790#FFFFFF#000000##FFFFFF
##2917901.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #291790;
/* rgb */ color: rgb(41, 23, 144);
/* oklch */ color: oklch(33.4% 0.181 276.9);
Tailwind
colors: {
  custom: {
    50: '#7459b2',
    500: '#291790',
    950: '#000000',
  },
}
SCSS
$custom: #291790;
$custom-light: #7459b2;
$custom-dark: #000000;
JSON
{
  "hex": "#291790",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 248.926,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33417,
    "c": 0.18131,
    "h": 276.9
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#291790
secondary
#AEC142
accent
#EF39D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291790

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

Preview Lab → · Contrast checker → · Palette generator →

#291790 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva