#2D5595#2D5595

#2D5595 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.4% C 0.114 H 259.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2D5595
RGBrgb(45, 85, 149)
HSLhsl(217, 54%, 38%)
HSVhsv(217, 70%, 58%)
CMYKcmyk(69.8%, 43%, 0%, 41.6%)
CIE-LABlab(36.41, 8.18, -39.33)
CIE-LCHlch(36.41, 40.17, 281.74°)
OKLaboklab(45.43% -0.021 -0.1123)
OKLCHoklch(45.43% 0.114 259.4)
XYZxyz(9.7536, 9.2238, 29.6943)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5595 #956D2D
analogous
#2D8995 #2D5595 #392D95
triadic
#2D5595 #952D55 #55952D
tetradic
#2D5595 #952D89 #956D2D #2D9539
square
#2D5595 #952D89 #956D2D #2D9539
split-complementary
#2D5595 #95392D #89952D
monochromatic
#111F37 #1F3A66 #2D5595 #3B70C4 #6A92D2

Accessibility & contrast

On white

7.38
#2D5595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2D5595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5595
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5595#FFFFFF#000000##FFFFFF
##2D55951.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375B97
Deuteranopia (green-blind)
#265194
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2d5595;
/* rgb */ color: rgb(45, 85, 149);
/* oklch */ color: oklch(45.4% 0.114 259.4);
Tailwind
colors: {
  custom: {
    50: '#7284b4',
    500: '#2d5595',
    950: '#000000',
  },
}
SCSS
$custom: #2d5595;
$custom-light: #7284b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5595",
  "rgb": {
    "r": 45,
    "g": 85,
    "b": 149
  },
  "hsl": {
    "h": 216.923,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45427,
    "c": 0.11423,
    "h": 259.4
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#2D5595
secondary
#B99965
accent
#A54BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5595

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

Preview Lab → · Contrast checker → · Palette generator →

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