#2D5997#2D5997

#2D5997 is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.5% C 0.112 H 257.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2D5997
RGBrgb(45, 89, 151)
HSLhsl(215, 54%, 38%)
HSVhsv(215, 70%, 59%)
CMYKcmyk(70.2%, 41.1%, 0%, 40.8%)
CIE-LABlab(37.73, 6.32, -38.44)
CIE-LCHlch(37.73, 38.96, 279.34°)
OKLaboklab(46.49% -0.0246 -0.1096)
OKLCHoklch(46.49% 0.112 257.4)
XYZxyz(10.2385, 9.9360, 30.6504)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5997 #976B2D
analogous
#2D8E97 #2D5997 #362D97
triadic
#2D5997 #972D59 #59972D
tetradic
#2D5997 #972D8E #976B2D #2D9736
square
#2D5997 #972D8E #976B2D #2D9736
split-complementary
#2D5997 #97362D #8E972D
monochromatic
#112139 #1F3D68 #2D5997 #3C75C5 #6B96D3

Accessibility & contrast

On white

7.03
#2D5997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2D5997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5997
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5997#FFFFFF#000000##FFFFFF
##2D59971.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E99
Deuteranopia (green-blind)
#2C5496
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d5997;
/* rgb */ color: rgb(45, 89, 151);
/* oklch */ color: oklch(46.5% 0.112 257.4);
Tailwind
colors: {
  custom: {
    50: '#7387b6',
    500: '#2d5997',
    950: '#000000',
  },
}
SCSS
$custom: #2d5997;
$custom-light: #7387b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5997",
  "rgb": {
    "r": 45,
    "g": 89,
    "b": 151
  },
  "hsl": {
    "h": 215.094,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46485,
    "c": 0.11232,
    "h": 257.4
  },
  "luminance": 0.09937
}

Semantic roles & 50–950 ramp

primary
#2D5997
secondary
#BA9766
accent
#A04ADD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5997

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

Preview Lab → · Contrast checker → · Palette generator →

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