#2D5799#2D5799

#2D5799 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.118 H 259.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2D5799
RGBrgb(45, 87, 153)
HSLhsl(217, 55%, 39%)
HSVhsv(217, 71%, 60%)
CMYKcmyk(70.6%, 43.1%, 0%, 40%)
CIE-LABlab(37.25, 8.38, -40.41)
CIE-LCHlch(37.25, 41.27, 281.71°)
OKLaboklab(46.15% -0.0221 -0.1154)
OKLCHoklch(46.15% 0.118 259.1)
XYZxyz(10.2381, 9.6731, 31.4584)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5799 #996F2D
analogous
#2D8D99 #2D5799 #392D99
triadic
#2D5799 #992D57 #57992D
tetradic
#2D5799 #992D8D #996F2D #2D9939
square
#2D5799 #992D8D #996F2D #2D9939
split-complementary
#2D5799 #99392D #8D992D
monochromatic
#11213A #1F3C6A #2D5799 #3D72C6 #6C95D4

Accessibility & contrast

On white

7.16
#2D5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5799
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5799#FFFFFF#000000##FFFFFF
##2D57991.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#265398
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d5799;
/* rgb */ color: rgb(45, 87, 153);
/* oklch */ color: oklch(46.2% 0.118 259.1);
Tailwind
colors: {
  custom: {
    50: '#7385b7',
    500: '#2d5799',
    950: '#000000',
  },
}
SCSS
$custom: #2d5799;
$custom-light: #7385b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5799",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 216.667,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.11751,
    "h": 259.1
  },
  "luminance": 0.09674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5799

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

Preview Lab → · Contrast checker → · Palette generator →

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