#2D518F#2D518F

#2D518F is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.110 H 260.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2D518F
RGBrgb(45, 81, 143)
HSLhsl(218, 52%, 37%)
HSVhsv(218, 69%, 56%)
CMYKcmyk(68.5%, 43.4%, 0%, 43.9%)
CIE-LABlab(34.85, 8.54, -38.18)
CIE-LCHlch(34.85, 39.12, 282.61°)
OKLaboklab(44.1% -0.0182 -0.109)
OKLCHoklch(44.1% 0.11 260.5)
XYZxyz(8.9808, 8.4250, 27.1342)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D518F #8F6B2D
analogous
#2D828F #2D518F #3A2D8F
triadic
#2D518F #8F2D51 #518F2D
tetradic
#2D518F #8F2D82 #8F6B2D #2D8F3A
square
#2D518F #8F2D82 #8F6B2D #2D8F3A
split-complementary
#2D518F #8F3A2D #828F2D
monochromatic
#101C32 #1E3760 #2D518F #3C6BBE #678DCF

Accessibility & contrast

On white

7.82
#2D518F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2D518F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D518F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D518F#FFFFFF#000000##FFFFFF
##2D518F1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345791
Deuteranopia (green-blind)
#244E8E
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d518f;
/* rgb */ color: rgb(45, 81, 143);
/* oklch */ color: oklch(44.1% 0.110 260.5);
Tailwind
colors: {
  custom: {
    50: '#7181b0',
    500: '#2d518f',
    950: '#000000',
  },
}
SCSS
$custom: #2d518f;
$custom-light: #7181b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d518f",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 143
  },
  "hsl": {
    "h": 217.959,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44103,
    "c": 0.11047,
    "h": 260.5
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#2D518F
secondary
#B69762
accent
#A74CDC
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D518F

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

Preview Lab → · Contrast checker → · Palette generator →

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