#2D2991#2D2991

#2D2991 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.164 H 276.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2D2991
RGBrgb(45, 41, 145)
HSLhsl(242, 56%, 36%)
HSVhsv(242, 72%, 57%)
CMYKcmyk(69%, 71.7%, 0%, 43.1%)
CIE-LABlab(24.28, 35.80, -56.54)
CIE-LCHlch(24.28, 66.92, 302.34°)
OKLaboklab(36.24% 0.0174 -0.1633)
OKLCHoklch(36.24% 0.164 276.1)
XYZxyz(6.9843, 4.1875, 27.2228)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2991 #8D9129
analogous
#295991 #2D2991 #612991
triadic
#2D2991 #912D29 #29912D
tetradic
#2D2991 #912959 #8D9129 #299161
square
#2D2991 #912959 #8D9129 #299161
split-complementary
#2D2991 #916129 #599129
monochromatic
#0F0E32 #1E1C61 #2D2991 #3C36C1 #6662D3

Accessibility & contrast

On white

11.43
#2D2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2991
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2991#FFFFFF#000000##FFFFFF
##2D29911.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2991;
/* rgb */ color: rgb(45, 41, 145);
/* oklch */ color: oklch(36.2% 0.164 276.1);
Tailwind
colors: {
  custom: {
    50: '#7464b2',
    500: '#2d2991',
    950: '#000000',
  },
}
SCSS
$custom: #2d2991;
$custom-light: #7464b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2991",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 242.308,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3624,
    "c": 0.16425,
    "h": 276.1
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#2D2991
secondary
#B5B85D
accent
#DF49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2D2991

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

Preview Lab → · Contrast checker → · Palette generator →

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