#2D508B#2D508B

#2D508B is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.106 H 260.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2D508B
RGBrgb(45, 80, 139)
HSLhsl(218, 51%, 36%)
HSVhsv(218, 68%, 55%)
CMYKcmyk(67.6%, 42.4%, 0%, 45.5%)
CIE-LABlab(34.31, 7.69, -36.60)
CIE-LCHlch(34.31, 37.40, 281.87°)
OKLaboklab(43.61% -0.018 -0.1043)
OKLCHoklch(43.61% 0.106 260.2)
XYZxyz(8.6094, 8.1585, 25.5421)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508B #8B682D
analogous
#2D7F8B #2D508B #392D8B
triadic
#2D508B #8B2D50 #508B2D
tetradic
#2D508B #8B2D7F #8B682D #2D8B39
square
#2D508B #8B2D7F #8B682D #2D8B39
split-complementary
#2D508B #8B392D #7F8B2D
monochromatic
#0F1B2F #1E355D #2D508B #3C6BB9 #658CCD

Accessibility & contrast

On white

7.98
#2D508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D508B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508B#FFFFFF#000000##FFFFFF
##2D508B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508b;
/* rgb */ color: rgb(45, 80, 139);
/* oklch */ color: oklch(43.6% 0.106 260.2);
Tailwind
colors: {
  custom: {
    50: '#7080ad',
    500: '#2d508b',
    950: '#000000',
  },
}
SCSS
$custom: #2d508b;
$custom-light: #7080ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508b",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 217.66,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.10588,
    "h": 260.2
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#2D508B
secondary
#B49560
accent
#A64DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D508B

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

Preview Lab → · Contrast checker → · Palette generator →

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