#2D5798#2D5798

#2D5798 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.1% C 0.116 H 258.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2D5798
RGBrgb(45, 87, 152)
HSLhsl(216, 54%, 39%)
HSVhsv(216, 70%, 60%)
CMYKcmyk(70.4%, 42.8%, 0%, 40.4%)
CIE-LABlab(37.19, 8.00, -39.90)
CIE-LCHlch(37.19, 40.70, 281.34°)
OKLaboklab(46.09% -0.0224 -0.1139)
OKLCHoklch(46.09% 0.116 258.9)
XYZxyz(10.1558, 9.6402, 31.0252)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5798 #986E2D
analogous
#2D8C98 #2D5798 #382D98
triadic
#2D5798 #982D57 #57982D
tetradic
#2D5798 #982D8C #986E2D #2D9838
square
#2D5798 #982D8C #986E2D #2D9838
split-complementary
#2D5798 #98382D #8C982D
monochromatic
#11213A #1F3C69 #2D5798 #3D72C5 #6C95D3

Accessibility & contrast

On white

7.17
#2D5798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2D5798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5798
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5798#FFFFFF#000000##FFFFFF
##2D57981.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9B
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d5798;
/* rgb */ color: rgb(45, 87, 152);
/* oklch */ color: oklch(46.1% 0.116 258.9);
Tailwind
colors: {
  custom: {
    50: '#7385b7',
    500: '#2d5798',
    950: '#000000',
  },
}
SCSS
$custom: #2d5798;
$custom-light: #7385b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5798",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 152
  },
  "hsl": {
    "h": 216.449,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.11609,
    "h": 258.9
  },
  "luminance": 0.09641
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5798

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

Preview Lab → · Contrast checker → · Palette generator →

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