#2D518E#2D518E

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

Color values

HEX#2D518E
RGBrgb(45, 81, 142)
HSLhsl(218, 52%, 37%)
HSVhsv(218, 68%, 56%)
CMYKcmyk(68.3%, 43%, 0%, 44.3%)
CIE-LABlab(34.79, 8.16, -37.67)
CIE-LCHlch(34.79, 38.54, 282.23°)
OKLaboklab(44.04% -0.0184 -0.1074)
OKLCHoklch(44.04% 0.109 260.3)
XYZxyz(8.9054, 8.3949, 26.7370)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D518E #8E6A2D
analogous
#2D828E #2D518E #3A2D8E
triadic
#2D518E #8E2D51 #518E2D
tetradic
#2D518E #8E2D82 #8E6A2D #2D8E3A
square
#2D518E #8E2D82 #8E6A2D #2D8E3A
split-complementary
#2D518E #8E3A2D #828E2D
monochromatic
#101C31 #1E3660 #2D518E #3C6CBC #678DCF

Accessibility & contrast

On white

7.84
#2D518E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2D518E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D518E
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D518E#FFFFFF#000000##FFFFFF
##2D518E1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355790
Deuteranopia (green-blind)
#254E8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d518e;
/* rgb */ color: rgb(45, 81, 142);
/* oklch */ color: oklch(44.0% 0.109 260.3);
Tailwind
colors: {
  custom: {
    50: '#7181af',
    500: '#2d518e',
    950: '#000000',
  },
}
SCSS
$custom: #2d518e;
$custom-light: #7181af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d518e",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 142
  },
  "hsl": {
    "h": 217.732,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44037,
    "c": 0.10901,
    "h": 260.3
  },
  "luminance": 0.08396
}

Semantic roles & 50–950 ramp

primary
#2D518E
secondary
#B59661
accent
#A64CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D518E

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

Preview Lab → · Contrast checker → · Palette generator →

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