#2D508A#2D508A

#2D508A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.104 H 260.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2D508A
RGBrgb(45, 80, 138)
HSLhsl(217, 51%, 36%)
HSVhsv(217, 67%, 54%)
CMYKcmyk(67.4%, 42%, 0%, 45.9%)
CIE-LABlab(34.25, 7.32, -36.09)
CIE-LCHlch(34.25, 36.82, 281.46°)
OKLaboklab(43.54% -0.0182 -0.1028)
OKLCHoklch(43.54% 0.104 260)
XYZxyz(8.5367, 8.1294, 25.1591)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508A #8A672D
analogous
#2D7E8A #2D508A #382D8A
triadic
#2D508A #8A2D50 #508A2D
tetradic
#2D508A #8A2D7E #8A672D #2D8A38
square
#2D508A #8A2D7E #8A672D #2D8A38
split-complementary
#2D508A #8A382D #7E8A2D
monochromatic
#0F1A2E #1E355C #2D508A #3C6BB8 #658CCD

Accessibility & contrast

On white

8.00
#2D508A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2D508A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D508A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508A#FFFFFF#000000##FFFFFF
##2D508A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558C
Deuteranopia (green-blind)
#274D89
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508a;
/* rgb */ color: rgb(45, 80, 138);
/* oklch */ color: oklch(43.5% 0.104 260.0);
Tailwind
colors: {
  custom: {
    50: '#7080ac',
    500: '#2d508a',
    950: '#000000',
  },
}
SCSS
$custom: #2d508a;
$custom-light: #7080ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508a",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 138
  },
  "hsl": {
    "h": 217.419,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4354,
    "c": 0.10443,
    "h": 260
  },
  "luminance": 0.0813
}

Semantic roles & 50–950 ramp

primary
#2D508A
secondary
#B39460
accent
#A54DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D508A

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

Preview Lab → · Contrast checker → · Palette generator →

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