#2D2581#2D2581

#2D2581 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.148 H 279.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2D2581
RGBrgb(45, 37, 129)
HSLhsl(245, 55%, 33%)
HSVhsv(245, 71%, 51%)
CMYKcmyk(65.1%, 71.3%, 0%, 49.4%)
CIE-LABlab(21.82, 32.75, -50.59)
CIE-LCHlch(21.82, 60.27, 302.92°)
OKLaboklab(34% 0.023 -0.1459)
OKLCHoklch(34% 0.148 279)
XYZxyz(5.7049, 3.4656, 21.1329)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2581 #798125
analogous
#254B81 #2D2581 #5B2581
triadic
#2D2581 #812D25 #25812D
tetradic
#2D2581 #81254B #798125 #25815B
square
#2D2581 #81254B #798125 #25815B
split-complementary
#2D2581 #815B25 #4B8125
monochromatic
#0C0A22 #1C1751 #2D2581 #3E33B1 #5D53CE

Accessibility & contrast

On white

12.40
#2D2581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2581
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2581#FFFFFF#000000##FFFFFF
##2D25811.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2581;
/* rgb */ color: rgb(45, 37, 129);
/* oklch */ color: oklch(34.0% 0.148 279.0);
Tailwind
colors: {
  custom: {
    50: '#7160a6',
    500: '#2d2581',
    950: '#000000',
  },
}
SCSS
$custom: #2d2581;
$custom-light: #7160a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2581",
  "rgb": {
    "r": 45,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 245.217,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33997,
    "c": 0.14771,
    "h": 279
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#2D2581
secondary
#A9B250
accent
#DF49D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2D2581

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

Preview Lab → · Contrast checker → · Palette generator →

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