#2D5286#2D5286

#2D5286 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.096 H 257.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2D5286
RGBrgb(45, 82, 134)
HSLhsl(215, 50%, 35%)
HSVhsv(215, 66%, 53%)
CMYKcmyk(66.4%, 38.8%, 0%, 47.5%)
CIE-LABlab(34.63, 4.51, -33.04)
CIE-LCHlch(34.63, 33.35, 277.77°)
OKLaboklab(43.76% -0.0213 -0.0939)
OKLCHoklch(43.76% 0.096 257.2)
XYZxyz(8.4010, 8.3129, 23.7115)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5286 #86612D
analogous
#2D7F86 #2D5286 #342D86
triadic
#2D5286 #862D52 #52862D
tetradic
#2D5286 #862D7F #86612D #2D8634
square
#2D5286 #862D7F #86612D #2D8634
split-complementary
#2D5286 #86342D #7F862D
monochromatic
#0E1A2A #1E3658 #2D5286 #3C6EB4 #638ECB

Accessibility & contrast

On white

7.89
#2D5286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2D5286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5286
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5286#FFFFFF#000000##FFFFFF
##2D52861.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5688
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#005E65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d5286;
/* rgb */ color: rgb(45, 82, 134);
/* oklch */ color: oklch(43.8% 0.096 257.2);
Tailwind
colors: {
  custom: {
    50: '#7082a9',
    500: '#2d5286',
    950: '#000000',
  },
}
SCSS
$custom: #2d5286;
$custom-light: #7082a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5286",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 134
  },
  "hsl": {
    "h": 215.056,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.09627,
    "h": 257.2
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#2D5286
secondary
#B18E5E
accent
#A04FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D5286

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

Preview Lab → · Contrast checker → · Palette generator →

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