#2D5897#2D5897

#2D5897 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.113 H 258.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2D5897
RGBrgb(45, 88, 151)
HSLhsl(216, 54%, 38%)
HSVhsv(216, 70%, 59%)
CMYKcmyk(70.2%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.43, 6.97, -38.92)
CIE-LCHlch(37.43, 39.54, 280.15°)
OKLaboklab(46.25% -0.0236 -0.111)
OKLCHoklch(46.25% 0.113 258)
XYZxyz(10.1558, 9.7707, 30.6229)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5897 #976C2D
analogous
#2D8D97 #2D5897 #372D97
triadic
#2D5897 #972D58 #58972D
tetradic
#2D5897 #972D8D #976C2D #2D9737
square
#2D5897 #972D8D #976C2D #2D9737
split-complementary
#2D5897 #97372D #8D972D
monochromatic
#112139 #1F3D68 #2D5897 #3C74C5 #6B95D3

Accessibility & contrast

On white

7.11
#2D5897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2D5897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5897
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5897#FFFFFF#000000##FFFFFF
##2D58971.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D99
Deuteranopia (green-blind)
#2A5496
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d5897;
/* rgb */ color: rgb(45, 88, 151);
/* oklch */ color: oklch(46.3% 0.113 258.0);
Tailwind
colors: {
  custom: {
    50: '#7386b6',
    500: '#2d5897',
    950: '#000000',
  },
}
SCSS
$custom: #2d5897;
$custom-light: #7386b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5897",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 215.66,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46253,
    "c": 0.11349,
    "h": 258
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#2D5897
secondary
#BA9866
accent
#A24ADD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5897

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

Preview Lab → · Contrast checker → · Palette generator →

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