#2D5188#2D5188

#2D5188 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.100 H 258.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2D5188
RGBrgb(45, 81, 136)
HSLhsl(216, 50%, 35%)
HSVhsv(216, 67%, 53%)
CMYKcmyk(66.9%, 40.4%, 0%, 46.7%)
CIE-LABlab(34.44, 5.91, -34.57)
CIE-LCHlch(34.44, 35.07, 279.70°)
OKLaboklab(43.65% -0.0198 -0.0984)
OKLCHoklch(43.65% 0.1 258.6)
XYZxyz(8.4670, 8.2195, 24.4281)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5188 #88642D
analogous
#2D7E88 #2D5188 #372D88
triadic
#2D5188 #882D51 #51882D
tetradic
#2D5188 #882D7E #88642D #2D8837
square
#2D5188 #882D7E #88642D #2D8837
split-complementary
#2D5188 #88372D #7E882D
monochromatic
#0F1A2C #1E365A #2D5188 #3C6CB6 #648DCC

Accessibility & contrast

On white

7.94
#2D5188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2D5188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5188
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5188#FFFFFF#000000##FFFFFF
##2D51881.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38568A
Deuteranopia (green-blind)
#2B4D87
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d5188;
/* rgb */ color: rgb(45, 81, 136);
/* oklch */ color: oklch(43.6% 0.100 258.6);
Tailwind
colors: {
  custom: {
    50: '#7081ab',
    500: '#2d5188',
    950: '#000000',
  },
}
SCSS
$custom: #2d5188;
$custom-light: #7081ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5188",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 136
  },
  "hsl": {
    "h": 216.264,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.10033,
    "h": 258.6
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#2D5188
secondary
#B2915F
accent
#A24EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D5188

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

Preview Lab → · Contrast checker → · Palette generator →

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