#2D508D#2D508D

#2D508D is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.109 H 260.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2D508D
RGBrgb(45, 80, 141)
HSLhsl(218, 52%, 36%)
HSVhsv(218, 68%, 55%)
CMYKcmyk(68.1%, 43.3%, 0%, 44.7%)
CIE-LABlab(34.43, 8.45, -37.63)
CIE-LCHlch(34.43, 38.57, 282.65°)
OKLaboklab(43.74% -0.0176 -0.1074)
OKLCHoklch(43.74% 0.109 260.7)
XYZxyz(8.7569, 8.2174, 26.3188)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508D #8D6A2D
analogous
#2D808D #2D508D #3A2D8D
triadic
#2D508D #8D2D50 #508D2D
tetradic
#2D508D #8D2D80 #8D6A2D #2D8D3A
square
#2D508D #8D2D80 #8D6A2D #2D8D3A
split-complementary
#2D508D #8D3A2D #808D2D
monochromatic
#0F1B30 #1E365F #2D508D #3C6ABB #668CCE

Accessibility & contrast

On white

7.94
#2D508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2D508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D508D
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508D#FFFFFF#000000##FFFFFF
##2D508D1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508d;
/* rgb */ color: rgb(45, 80, 141);
/* oklch */ color: oklch(43.7% 0.109 260.7);
Tailwind
colors: {
  custom: {
    50: '#7180af',
    500: '#2d508d',
    950: '#000000',
  },
}
SCSS
$custom: #2d508d;
$custom-light: #7180af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508d",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 218.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43738,
    "c": 0.10879,
    "h": 260.7
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#2D508D
secondary
#B59661
accent
#A74DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D508D

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

Preview Lab → · Contrast checker → · Palette generator →

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