#2D2585#2D2585

#2D2585 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.153 H 278.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2D2585
RGBrgb(45, 37, 133)
HSLhsl(245, 56%, 33%)
HSVhsv(245, 72%, 52%)
CMYKcmyk(66.2%, 72.2%, 0%, 47.8%)
CIE-LABlab(22.21, 34.12, -52.47)
CIE-LCHlch(22.21, 62.59, 303.04°)
OKLaboklab(34.4% 0.0223 -0.1514)
OKLCHoklch(34.4% 0.153 278.4)
XYZxyz(5.9760, 3.5740, 22.5607)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2585 #7D8525
analogous
#254D85 #2D2585 #5D2585
triadic
#2D2585 #852D25 #25852D
tetradic
#2D2585 #85254D #7D8525 #25855D
square
#2D2585 #85254D #7D8525 #25855D
split-complementary
#2D2585 #855D25 #4D8525
monochromatic
#0D0A25 #1D1855 #2D2585 #3D32B5 #5F55D0

Accessibility & contrast

On white

12.25
#2D2585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2585
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2585#FFFFFF#000000##FFFFFF
##2D25851.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d2585;
/* rgb */ color: rgb(45, 37, 133);
/* oklch */ color: oklch(34.4% 0.153 278.4);
Tailwind
colors: {
  custom: {
    50: '#7261a9',
    500: '#2d2585',
    950: '#000000',
  },
}
SCSS
$custom: #2d2585;
$custom-light: #7261a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2585",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 245,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.15304,
    "h": 278.4
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2585

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

Preview Lab → · Contrast checker → · Palette generator →

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