#2D2584#2D2584

#2D2584 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.152 H 278.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2D2584
RGBrgb(45, 37, 132)
HSLhsl(245, 56%, 33%)
HSVhsv(245, 72%, 52%)
CMYKcmyk(65.9%, 72%, 0%, 48.2%)
CIE-LABlab(22.11, 33.78, -52.00)
CIE-LCHlch(22.11, 62.01, 303.01°)
OKLaboklab(34.29% 0.0225 -0.15)
OKLCHoklch(34.29% 0.152 278.5)
XYZxyz(5.9073, 3.5465, 22.1986)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2584 #7C8425
analogous
#254C84 #2D2584 #5C2584
triadic
#2D2584 #842D25 #25842D
tetradic
#2D2584 #84254C #7C8425 #25845C
square
#2D2584 #84254C #7C8425 #25845C
split-complementary
#2D2584 #845C25 #4C8425
monochromatic
#0C0A24 #1D1854 #2D2584 #3D32B4 #5F54CF

Accessibility & contrast

On white

12.29
#2D2584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D2584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2584
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2584#FFFFFF#000000##FFFFFF
##2D25841.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2584;
/* rgb */ color: rgb(45, 37, 132);
/* oklch */ color: oklch(34.3% 0.152 278.5);
Tailwind
colors: {
  custom: {
    50: '#7261a9',
    500: '#2d2584',
    950: '#000000',
  },
}
SCSS
$custom: #2d2584;
$custom-light: #7261a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2584",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 132
  },
  "hsl": {
    "h": 245.053,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.15171,
    "h": 278.5
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#2D2584
secondary
#ABB351
accent
#E048D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2584

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

Preview Lab → · Contrast checker → · Palette generator →

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