#2D2588#2D2588

#2D2588 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.157 H 278.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2D2588
RGBrgb(45, 37, 136)
HSLhsl(245, 57%, 34%)
HSVhsv(245, 73%, 53%)
CMYKcmyk(66.9%, 72.8%, 0%, 46.7%)
CIE-LABlab(22.51, 35.15, -53.86)
CIE-LCHlch(22.51, 64.31, 303.13°)
OKLaboklab(34.7% 0.0218 -0.1555)
OKLCHoklch(34.7% 0.157 278)
XYZxyz(6.1863, 3.6581, 23.6679)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2588 #808825
analogous
#254F88 #2D2588 #5F2588
triadic
#2D2588 #882D25 #25882D
tetradic
#2D2588 #88254F #808825 #25885F
square
#2D2588 #88254F #808825 #25885F
split-complementary
#2D2588 #885F25 #4F8825
monochromatic
#0D0B28 #1D1858 #2D2588 #3D32B8 #6056D1

Accessibility & contrast

On white

12.13
#2D2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2588
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2588#FFFFFF#000000##FFFFFF
##2D25881.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2588;
/* rgb */ color: rgb(45, 37, 136);
/* oklch */ color: oklch(34.7% 0.157 278.0);
Tailwind
colors: {
  custom: {
    50: '#7361ac',
    500: '#2d2588',
    950: '#000000',
  },
}
SCSS
$custom: #2d2588;
$custom-light: #7361ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2588",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 244.848,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.157,
    "h": 278
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#2D2588
secondary
#AEB653
accent
#E047D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2588

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

Preview Lab → · Contrast checker → · Palette generator →

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