#2D2591#2D2591

#2D2591 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.169 H 276.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2D2591
RGBrgb(45, 37, 145)
HSLhsl(244, 59%, 36%)
HSVhsv(244, 74%, 57%)
CMYKcmyk(69%, 74.5%, 0%, 43.1%)
CIE-LABlab(23.42, 38.19, -57.96)
CIE-LCHlch(23.42, 69.41, 303.38°)
OKLaboklab(35.63% 0.02 -0.1674)
OKLCHoklch(35.63% 0.169 276.8)
XYZxyz(6.8529, 3.9248, 27.1790)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2591 #899125
analogous
#255391 #2D2591 #632591
triadic
#2D2591 #912D25 #25912D
tetradic
#2D2591 #912553 #899125 #259163
square
#2D2591 #912553 #899125 #259163
split-complementary
#2D2591 #916325 #539125
monochromatic
#0F0C2F #1E1960 #2D2591 #3C31C2 #645BD5

Accessibility & contrast

On white

11.76
#2D2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2591
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2591#FFFFFF#000000##FFFFFF
##2D25911.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2591;
/* rgb */ color: rgb(45, 37, 145);
/* oklch */ color: oklch(35.6% 0.169 276.8);
Tailwind
colors: {
  custom: {
    50: '#7561b2',
    500: '#2d2591',
    950: '#000000',
  },
}
SCSS
$custom: #2d2591;
$custom-light: #7561b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2591",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 244.444,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35626,
    "c": 0.16864,
    "h": 276.8
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#2D2591
secondary
#B3BA58
accent
#E345D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D2591

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

Preview Lab → · Contrast checker → · Palette generator →

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