#2B5797#2B5797

#2B5797 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.115 H 257.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2B5797
RGBrgb(43, 87, 151)
HSLhsl(216, 56%, 38%)
HSVhsv(216, 72%, 59%)
CMYKcmyk(71.5%, 42.4%, 0%, 40.8%)
CIE-LABlab(37.05, 7.30, -39.53)
CIE-LCHlch(37.05, 40.20, 280.46°)
OKLaboklab(45.93% -0.0241 -0.1129)
OKLCHoklch(45.93% 0.115 257.9)
XYZxyz(9.9883, 9.5633, 30.5917)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5797 #976B2B
analogous
#2B8D97 #2B5797 #352B97
triadic
#2B5797 #972B57 #57972B
tetradic
#2B5797 #972B8D #976B2B #2B9735
square
#2B5797 #972B8D #976B2B #2B9735
split-complementary
#2B5797 #97352B #8D972B
monochromatic
#102038 #1D3C67 #2B5797 #3972C7 #6894D4

Accessibility & contrast

On white

7.21
#2B5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5797
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5797#FFFFFF#000000##FFFFFF
##2B57971.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#275396
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2b5797;
/* rgb */ color: rgb(43, 87, 151);
/* oklch */ color: oklch(45.9% 0.115 257.9);
Tailwind
colors: {
  custom: {
    50: '#7285b6',
    500: '#2b5797',
    950: '#000000',
  },
}
SCSS
$custom: #2b5797;
$custom-light: #7285b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5797",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 215.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45935,
    "c": 0.11541,
    "h": 257.9
  },
  "luminance": 0.09564
}

Semantic roles & 50–950 ramp

primary
#2B5797
secondary
#BB9763
accent
#A249DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2B5797

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

Preview Lab → · Contrast checker → · Palette generator →

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