#2D5899#2D5899

#2D5899 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.116 H 258.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2D5899
RGBrgb(45, 88, 153)
HSLhsl(216, 55%, 39%)
HSVhsv(216, 71%, 60%)
CMYKcmyk(70.6%, 42.5%, 0%, 40%)
CIE-LABlab(37.55, 7.73, -39.93)
CIE-LCHlch(37.55, 40.67, 280.95°)
OKLaboklab(46.38% -0.0231 -0.114)
OKLCHoklch(46.38% 0.116 258.5)
XYZxyz(10.3196, 9.8362, 31.4855)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5899 #996E2D
analogous
#2D8E99 #2D5899 #382D99
triadic
#2D5899 #992D58 #58992D
tetradic
#2D5899 #992D8E #996E2D #2D9938
square
#2D5899 #992D8E #996E2D #2D9938
split-complementary
#2D5899 #99382D #8E992D
monochromatic
#11223A #1F3D6A #2D5899 #3D74C6 #6C96D4

Accessibility & contrast

On white

7.08
#2D5899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D5899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5899
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5899#FFFFFF#000000##FFFFFF
##2D58991.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395E9C
Deuteranopia (green-blind)
#285498
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d5899;
/* rgb */ color: rgb(45, 88, 153);
/* oklch */ color: oklch(46.4% 0.116 258.5);
Tailwind
colors: {
  custom: {
    50: '#7386b7',
    500: '#2d5899',
    950: '#000000',
  },
}
SCSS
$custom: #2d5899;
$custom-light: #7386b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5899",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 216.111,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46384,
    "c": 0.11632,
    "h": 258.5
  },
  "luminance": 0.09837
}

Semantic roles & 50–950 ramp

primary
#2D5899
secondary
#BB9967
accent
#A34ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5899

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

Preview Lab → · Contrast checker → · Palette generator →

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