#291F8C#291F8C

#291F8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.169 H 276.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#291F8C
RGBrgb(41, 31, 140)
HSLhsl(246, 64%, 34%)
HSVhsv(246, 78%, 55%)
CMYKcmyk(70.7%, 77.9%, 0%, 45.1%)
CIE-LABlab(21.37, 39.49, -58.24)
CIE-LCHlch(21.37, 70.37, 304.14°)
OKLaboklab(33.94% 0.0191 -0.1683)
OKLCHoklch(33.94% 0.169 276.5)
XYZxyz(6.1365, 3.3443, 25.1280)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F8C #828C1F
analogous
#1F4B8C #291F8C #5F1F8C
triadic
#291F8C #8C291F #1F8C29
tetradic
#291F8C #8C1F4B #828C1F #1F8C5F
square
#291F8C #8C1F4B #828C1F #1F8C5F
split-complementary
#291F8C #8C5F1F #4B8C1F
monochromatic
#0C0928 #1A145A #291F8C #382ABE #5A4ED8

Accessibility & contrast

On white

12.58
#291F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#291F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F8C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F8C#FFFFFF#000000##FFFFFF
##291F8C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291f8c;
/* rgb */ color: rgb(41, 31, 140);
/* oklch */ color: oklch(33.9% 0.169 276.5);
Tailwind
colors: {
  custom: {
    50: '#725daf',
    500: '#291f8c',
    950: '#000000',
  },
}
SCSS
$custom: #291f8c;
$custom-light: #725daf;
$custom-dark: #000000;
JSON
{
  "hex": "#291f8c",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 245.505,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3394,
    "c": 0.16941,
    "h": 276.5
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#291F8C
secondary
#B0BB4C
accent
#E741D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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