#2D5795#2D5795

#2D5795 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.112 H 258.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2D5795
RGBrgb(45, 87, 149)
HSLhsl(216, 54%, 38%)
HSVhsv(216, 70%, 58%)
CMYKcmyk(69.8%, 41.6%, 0%, 41.6%)
CIE-LABlab(37.01, 6.87, -38.38)
CIE-LCHlch(37.01, 38.99, 280.14°)
OKLaboklab(45.89% -0.023 -0.1094)
OKLCHoklch(45.89% 0.112 258.1)
XYZxyz(9.9132, 9.5432, 29.7475)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5795 #956B2D
analogous
#2D8B95 #2D5795 #372D95
triadic
#2D5795 #952D57 #57952D
tetradic
#2D5795 #952D8B #956B2D #2D9537
square
#2D5795 #952D8B #956B2D #2D9537
split-complementary
#2D5795 #95372D #8B952D
monochromatic
#112037 #1F3C66 #2D5795 #3B72C4 #6A94D2

Accessibility & contrast

On white

7.22
#2D5795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2D5795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5795
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5795#FFFFFF#000000##FFFFFF
##2D57951.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5C97
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#00656E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d5795;
/* rgb */ color: rgb(45, 87, 149);
/* oklch */ color: oklch(45.9% 0.112 258.1);
Tailwind
colors: {
  custom: {
    50: '#7285b4',
    500: '#2d5795',
    950: '#000000',
  },
}
SCSS
$custom: #2d5795;
$custom-light: #7285b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5795",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 149
  },
  "hsl": {
    "h": 215.769,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.11184,
    "h": 258.1
  },
  "luminance": 0.09544
}

Semantic roles & 50–950 ramp

primary
#2D5795
secondary
#B99765
accent
#A24BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5795

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

Preview Lab → · Contrast checker → · Palette generator →

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