#2D508E#2D508E

#2D508E is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.110 H 260.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2D508E
RGBrgb(45, 80, 142)
HSLhsl(218, 52%, 37%)
HSVhsv(218, 68%, 56%)
CMYKcmyk(68.3%, 43.7%, 0%, 44.3%)
CIE-LABlab(34.49, 8.83, -38.15)
CIE-LCHlch(34.49, 39.15, 283.03°)
OKLaboklab(43.81% -0.0173 -0.1089)
OKLCHoklch(43.81% 0.11 260.9)
XYZxyz(8.8316, 8.2473, 26.7124)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D508E #8E6B2D
analogous
#2D818E #2D508E #3B2D8E
triadic
#2D508E #8E2D50 #508E2D
tetradic
#2D508E #8E2D81 #8E6B2D #2D8E3B
square
#2D508E #8E2D81 #8E6B2D #2D8E3B
split-complementary
#2D508E #8E3B2D #818E2D
monochromatic
#101C31 #1E3660 #2D508E #3C6ABC #678CCF

Accessibility & contrast

On white

7.93
#2D508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2D508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D508E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D508E#FFFFFF#000000##FFFFFF
##2D508E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#234D8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d508e;
/* rgb */ color: rgb(45, 80, 142);
/* oklch */ color: oklch(43.8% 0.110 260.9);
Tailwind
colors: {
  custom: {
    50: '#7180af',
    500: '#2d508e',
    950: '#000000',
  },
}
SCSS
$custom: #2d508e;
$custom-light: #7180af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d508e",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 218.351,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43805,
    "c": 0.11024,
    "h": 260.9
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#2D508E
secondary
#B59761
accent
#A84CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D508E

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

Preview Lab → · Contrast checker → · Palette generator →

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