#2D518D#2D518D

#2D518D is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.108 H 260.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2D518D
RGBrgb(45, 81, 141)
HSLhsl(218, 52%, 36%)
HSVhsv(218, 68%, 55%)
CMYKcmyk(68.1%, 42.6%, 0%, 44.7%)
CIE-LABlab(34.73, 7.79, -37.16)
CIE-LCHlch(34.73, 37.96, 281.84°)
OKLaboklab(43.97% -0.0186 -0.1059)
OKLCHoklch(43.97% 0.108 260)
XYZxyz(8.8306, 8.3650, 26.3434)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D518D #8D692D
analogous
#2D818D #2D518D #392D8D
triadic
#2D518D #8D2D51 #518D2D
tetradic
#2D518D #8D2D81 #8D692D #2D8D39
square
#2D518D #8D2D81 #8D692D #2D8D39
split-complementary
#2D518D #8D392D #818D2D
monochromatic
#0F1C30 #1E365F #2D518D #3C6CBB #668DCE

Accessibility & contrast

On white

7.86
#2D518D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2D518D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D518D
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D518D#FFFFFF#000000##FFFFFF
##2D518D1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568F
Deuteranopia (green-blind)
#264E8C
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d518d;
/* rgb */ color: rgb(45, 81, 141);
/* oklch */ color: oklch(44.0% 0.108 260.0);
Tailwind
colors: {
  custom: {
    50: '#7181af',
    500: '#2d518d',
    950: '#000000',
  },
}
SCSS
$custom: #2d518d;
$custom-light: #7181af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d518d",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 217.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.10757,
    "h": 260
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D518D

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

Preview Lab → · Contrast checker → · Palette generator →

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