#2D5896#2D5896

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

Color values

HEX#2D5896
RGBrgb(45, 88, 150)
HSLhsl(215, 54%, 38%)
HSVhsv(215, 70%, 59%)
CMYKcmyk(70%, 41.3%, 0%, 41.2%)
CIE-LABlab(37.37, 6.59, -38.41)
CIE-LCHlch(37.37, 38.97, 279.74°)
OKLaboklab(46.19% -0.0238 -0.1095)
OKLCHoklch(46.19% 0.112 257.7)
XYZxyz(10.0749, 9.7383, 30.1970)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5896 #966B2D
analogous
#2D8C96 #2D5896 #372D96
triadic
#2D5896 #962D58 #58962D
tetradic
#2D5896 #962D8C #966B2D #2D9637
square
#2D5896 #962D8C #966B2D #2D9637
split-complementary
#2D5896 #96372D #8C962D
monochromatic
#112138 #1F3C67 #2D5896 #3C74C4 #6B95D3

Accessibility & contrast

On white

7.12
#2D5896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2D5896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5896
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5896#FFFFFF#000000##FFFFFF
##2D58961.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D98
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d5896;
/* rgb */ color: rgb(45, 88, 150);
/* oklch */ color: oklch(46.2% 0.112 257.7);
Tailwind
colors: {
  custom: {
    50: '#7386b5',
    500: '#2d5896',
    950: '#000000',
  },
}
SCSS
$custom: #2d5896;
$custom-light: #7386b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5896",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 150
  },
  "hsl": {
    "h": 215.429,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46188,
    "c": 0.11208,
    "h": 257.7
  },
  "luminance": 0.09739
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5896

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

Preview Lab → · Contrast checker → · Palette generator →

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