#2D2589#2D2589

#2D2589 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.158 H 277.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2D2589
RGBrgb(45, 37, 137)
HSLhsl(245, 57%, 34%)
HSVhsv(245, 73%, 54%)
CMYKcmyk(67.2%, 73%, 0%, 46.3%)
CIE-LABlab(22.61, 35.49, -54.32)
CIE-LCHlch(22.61, 64.89, 303.15°)
OKLaboklab(34.8% 0.0216 -0.1568)
OKLCHoklch(34.8% 0.158 277.8)
XYZxyz(6.2577, 3.6866, 24.0439)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2589 #818925
analogous
#254F89 #2D2589 #5F2589
triadic
#2D2589 #892D25 #25892D
tetradic
#2D2589 #89254F #818925 #25895F
square
#2D2589 #89254F #818925 #25895F
split-complementary
#2D2589 #895F25 #4F8925
monochromatic
#0D0B29 #1D1859 #2D2589 #3D32B9 #6157D2

Accessibility & contrast

On white

12.09
#2D2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2589
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2589#FFFFFF#000000##FFFFFF
##2D25891.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d2589;
/* rgb */ color: rgb(45, 37, 137);
/* oklch */ color: oklch(34.8% 0.158 277.8);
Tailwind
colors: {
  custom: {
    50: '#7361ac',
    500: '#2d2589',
    950: '#000000',
  },
}
SCSS
$custom: #2d2589;
$custom-light: #7361ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2589",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 244.8,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.15831,
    "h": 277.8
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#2D2589
secondary
#AEB654
accent
#E147D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2589

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

Preview Lab → · Contrast checker → · Palette generator →

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