#2D508F#2D508F

#2D508F is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.112 H 261.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2D508F
RGBrgb(45, 80, 143)
HSLhsl(219, 52%, 37%)
HSVhsv(219, 69%, 56%)
CMYKcmyk(68.5%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.55, 9.20, -38.66)
CIE-LCHlch(34.55, 39.74, 283.39°)
OKLaboklab(43.87% -0.0171 -0.1104)
OKLCHoklch(43.87% 0.112 261.2)
XYZxyz(8.9070, 8.2775, 27.1096)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508F #8F6C2D
analogous
#2D818F #2D508F #3B2D8F
triadic
#2D508F #8F2D50 #508F2D
tetradic
#2D508F #8F2D81 #8F6C2D #2D8F3B
square
#2D508F #8F2D81 #8F6C2D #2D8F3B
split-complementary
#2D508F #8F3B2D #818F2D
monochromatic
#101C32 #1E3660 #2D508F #3C6ABE #678CCF

Accessibility & contrast

On white

7.91
#2D508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2D508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D508F
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508F#FFFFFF#000000##FFFFFF
##2D508F1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#224D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508f;
/* rgb */ color: rgb(45, 80, 143);
/* oklch */ color: oklch(43.9% 0.112 261.2);
Tailwind
colors: {
  custom: {
    50: '#7180b0',
    500: '#2d508f',
    950: '#000000',
  },
}
SCSS
$custom: #2d508f;
$custom-light: #7180b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508f",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 218.571,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43873,
    "c": 0.11169,
    "h": 261.2
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#2D508F
secondary
#B69862
accent
#A84CDC
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D508F

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

Preview Lab → · Contrast checker → · Palette generator →

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