#2D5797#2D5797

#2D5797 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.115 H 258.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2D5797
RGBrgb(45, 87, 151)
HSLhsl(216, 54%, 38%)
HSVhsv(216, 70%, 59%)
CMYKcmyk(70.2%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.13, 7.62, -39.40)
CIE-LCHlch(37.13, 40.13, 280.95°)
OKLaboklab(46.02% -0.0226 -0.1124)
OKLCHoklch(46.02% 0.115 258.6)
XYZxyz(10.0743, 9.6076, 30.5957)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5797 #976D2D
analogous
#2D8C97 #2D5797 #382D97
triadic
#2D5797 #972D57 #57972D
tetradic
#2D5797 #972D8C #976D2D #2D9738
square
#2D5797 #972D8C #976D2D #2D9738
split-complementary
#2D5797 #97382D #8C972D
monochromatic
#112139 #1F3C68 #2D5797 #3C72C5 #6B94D3

Accessibility & contrast

On white

7.19
#2D5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2D5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5797
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5797#FFFFFF#000000##FFFFFF
##2D57971.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d5797;
/* rgb */ color: rgb(45, 87, 151);
/* oklch */ color: oklch(46.0% 0.115 258.6);
Tailwind
colors: {
  custom: {
    50: '#7385b6',
    500: '#2d5797',
    950: '#000000',
  },
}
SCSS
$custom: #2d5797;
$custom-light: #7385b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5797",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 216.226,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46021,
    "c": 0.11468,
    "h": 258.6
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#2D5797
secondary
#BA9966
accent
#A34ADD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5797

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

Preview Lab → · Contrast checker → · Palette generator →

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