#2D518C#2D518C

#2D518C is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.106 H 259.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2D518C
RGBrgb(45, 81, 140)
HSLhsl(217, 51%, 36%)
HSVhsv(217, 68%, 55%)
CMYKcmyk(67.9%, 42.1%, 0%, 45.1%)
CIE-LABlab(34.67, 7.41, -36.64)
CIE-LCHlch(34.67, 37.38, 281.43°)
OKLaboklab(43.9% -0.0188 -0.1044)
OKLCHoklch(43.9% 0.106 259.8)
XYZxyz(8.7566, 8.3353, 25.9533)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D518C #8C682D
analogous
#2D818C #2D518C #392D8C
triadic
#2D518C #8C2D51 #518C2D
tetradic
#2D518C #8C2D81 #8C682D #2D8C39
square
#2D518C #8C2D81 #8C682D #2D8C39
split-complementary
#2D518C #8C392D #818C2D
monochromatic
#0F1B2F #1E365E #2D518C #3C6CBA #668DCE

Accessibility & contrast

On white

7.87
#2D518C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D518C
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D518C#FFFFFF#000000##FFFFFF
##2D518C1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#274D8B
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d518c;
/* rgb */ color: rgb(45, 81, 140);
/* oklch */ color: oklch(43.9% 0.106 259.8);
Tailwind
colors: {
  custom: {
    50: '#7181ae',
    500: '#2d518c',
    950: '#000000',
  },
}
SCSS
$custom: #2d518c;
$custom-light: #7181ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d518c",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 140
  },
  "hsl": {
    "h": 217.263,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43904,
    "c": 0.10611,
    "h": 259.8
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D518C

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

Preview Lab → · Contrast checker → · Palette generator →

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