#2D5895#2D5895

#2D5895 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.1% C 0.111 H 257.5°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2D5895
RGBrgb(45, 88, 149)
HSLhsl(215, 54%, 38%)
HSVhsv(215, 70%, 58%)
CMYKcmyk(69.8%, 40.9%, 0%, 41.6%)
CIE-LABlab(37.31, 6.22, -37.90)
CIE-LCHlch(37.31, 38.41, 279.32°)
OKLaboklab(46.12% -0.024 -0.108)
OKLCHoklch(46.12% 0.111 257.5)
XYZxyz(9.9948, 9.7062, 29.7747)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5895 #956A2D
analogous
#2D8C95 #2D5895 #362D95
triadic
#2D5895 #952D58 #58952D
tetradic
#2D5895 #952D8C #956A2D #2D9536
square
#2D5895 #952D8C #956A2D #2D9536
split-complementary
#2D5895 #95362D #8C952D
monochromatic
#112037 #1F3C66 #2D5895 #3B74C4 #6A95D2

Accessibility & contrast

On white

7.14
#2D5895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2D5895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5895
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5895#FFFFFF#000000##FFFFFF
##2D58951.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5895;
/* rgb */ color: rgb(45, 88, 149);
/* oklch */ color: oklch(46.1% 0.111 257.5);
Tailwind
colors: {
  custom: {
    50: '#7286b4',
    500: '#2d5895',
    950: '#000000',
  },
}
SCSS
$custom: #2d5895;
$custom-light: #7286b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5895",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 149
  },
  "hsl": {
    "h": 215.192,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46123,
    "c": 0.11067,
    "h": 257.5
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5895

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

Preview Lab → · Contrast checker → · Palette generator →

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