#2D2587#2D2587

#2D2587 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.156 H 278.1°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D2587
RGBrgb(45, 37, 135)
HSLhsl(245, 57%, 34%)
HSVhsv(245, 73%, 53%)
CMYKcmyk(66.7%, 72.6%, 0%, 47.1%)
CIE-LABlab(22.41, 34.80, -53.40)
CIE-LCHlch(22.41, 63.74, 303.10°)
OKLaboklab(34.6% 0.022 -0.1541)
OKLCHoklch(34.6% 0.156 278.1)
XYZxyz(6.1155, 3.6298, 23.2953)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2587 #7F8725
analogous
#254E87 #2D2587 #5E2587
triadic
#2D2587 #872D25 #25872D
tetradic
#2D2587 #87254E #7F8725 #25875E
square
#2D2587 #87254E #7F8725 #25875E
split-complementary
#2D2587 #875E25 #4E8725
monochromatic
#0D0B27 #1D1857 #2D2587 #3D32B7 #6056D1

Accessibility & contrast

On white

12.17
#2D2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2587
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2587#FFFFFF#000000##FFFFFF
##2D25871.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2587;
/* rgb */ color: rgb(45, 37, 135);
/* oklch */ color: oklch(34.6% 0.156 278.1);
Tailwind
colors: {
  custom: {
    50: '#7361ab',
    500: '#2d2587',
    950: '#000000',
  },
}
SCSS
$custom: #2d2587;
$custom-light: #7361ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2587",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 244.898,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34597,
    "c": 0.15569,
    "h": 278.1
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#2D2587
secondary
#ADB553
accent
#E048D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2587

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

Preview Lab → · Contrast checker → · Palette generator →

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