#2D5186#2D5186

#2D5186 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.097 H 258.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2D5186
RGBrgb(45, 81, 134)
HSLhsl(216, 50%, 35%)
HSVhsv(216, 66%, 53%)
CMYKcmyk(66.4%, 39.6%, 0%, 47.5%)
CIE-LABlab(34.32, 5.16, -33.53)
CIE-LCHlch(34.32, 33.92, 278.75°)
OKLaboklab(43.52% -0.0202 -0.0953)
OKLCHoklch(43.52% 0.097 258)
XYZxyz(8.3262, 8.1632, 23.6865)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5186 #86622D
analogous
#2D7E86 #2D5186 #352D86
triadic
#2D5186 #862D51 #51862D
tetradic
#2D5186 #862D7E #86622D #2D8635
square
#2D5186 #862D7E #86622D #2D8635
split-complementary
#2D5186 #86352D #7E862D
monochromatic
#0E1A2A #1E3558 #2D5186 #3C6DB4 #638DCB

Accessibility & contrast

On white

7.98
#2D5186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2D5186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5186
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5186#FFFFFF#000000##FFFFFF
##2D51861.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5588
Deuteranopia (green-blind)
#2D4D85
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d5186;
/* rgb */ color: rgb(45, 81, 134);
/* oklch */ color: oklch(43.5% 0.097 258.0);
Tailwind
colors: {
  custom: {
    50: '#7081a9',
    500: '#2d5186',
    950: '#000000',
  },
}
SCSS
$custom: #2d5186;
$custom-light: #7081a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5186",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 215.73,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43518,
    "c": 0.09743,
    "h": 258
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#2D5186
secondary
#B18F5E
accent
#A14FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D5186

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

Preview Lab → · Contrast checker → · Palette generator →

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