#2D508C#2D508C

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

Color values

HEX#2D508C
RGBrgb(45, 80, 140)
HSLhsl(218, 51%, 36%)
HSVhsv(218, 68%, 55%)
CMYKcmyk(67.9%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.37, 8.07, -37.12)
CIE-LCHlch(34.37, 37.99, 282.27°)
OKLaboklab(43.67% -0.0178 -0.1059)
OKLCHoklch(43.67% 0.107 260.5)
XYZxyz(8.6828, 8.1878, 25.9287)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508C #8C692D
analogous
#2D808C #2D508C #3A2D8C
triadic
#2D508C #8C2D50 #508C2D
tetradic
#2D508C #8C2D80 #8C692D #2D8C3A
square
#2D508C #8C2D80 #8C692D #2D8C3A
split-complementary
#2D508C #8C3A2D #808C2D
monochromatic
#0F1B2F #1E365E #2D508C #3C6ABA #668CCE

Accessibility & contrast

On white

7.96
#2D508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D508C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508C#FFFFFF#000000##FFFFFF
##2D508C1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568E
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508c;
/* rgb */ color: rgb(45, 80, 140);
/* oklch */ color: oklch(43.7% 0.107 260.5);
Tailwind
colors: {
  custom: {
    50: '#7180ae',
    500: '#2d508c',
    950: '#000000',
  },
}
SCSS
$custom: #2d508c;
$custom-light: #7180ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508c",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 217.895,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43672,
    "c": 0.10734,
    "h": 260.5
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D508C

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

Preview Lab → · Contrast checker → · Palette generator →

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