#2A2991#2A2991

#2A2991 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.165 H 274.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2A2991
RGBrgb(42, 41, 145)
HSLhsl(241, 56%, 36%)
HSVhsv(241, 72%, 57%)
CMYKcmyk(71%, 71.7%, 0%, 43.1%)
CIE-LABlab(24.07, 35.43, -56.90)
CIE-LCHlch(24.07, 67.03, 301.91°)
OKLaboklab(36.03% 0.0135 -0.1645)
OKLCHoklch(36.03% 0.165 274.7)
XYZxyz(6.8569, 4.1218, 27.2168)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2991 #909129
analogous
#295C91 #2A2991 #5E2991
triadic
#2A2991 #912A29 #29912A
tetradic
#2A2991 #91295C #909129 #29915E
square
#2A2991 #91295C #909129 #29915E
split-complementary
#2A2991 #915E29 #5C9129
monochromatic
#0E0E32 #1C1C61 #2A2991 #3836C1 #6362D3

Accessibility & contrast

On white

11.51
#2A2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2991
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2991#FFFFFF#000000##FFFFFF
##2A29911.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2991;
/* rgb */ color: rgb(42, 41, 145);
/* oklch */ color: oklch(36.0% 0.165 274.7);
Tailwind
colors: {
  custom: {
    50: '#7364b2',
    500: '#2a2991',
    950: '#000000',
  },
}
SCSS
$custom: #2a2991;
$custom-light: #7364b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2991",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 240.577,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36033,
    "c": 0.16501,
    "h": 274.7
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#2A2991
secondary
#B7B85D
accent
#DF49DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2991

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

Preview Lab → · Contrast checker → · Palette generator →

#2A2991 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva