#2B5897#2B5897

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

Color values

HEX#2B5897
RGBrgb(43, 88, 151)
HSLhsl(215, 56%, 38%)
HSVhsv(215, 72%, 59%)
CMYKcmyk(71.5%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.35, 6.65, -39.05)
CIE-LCHlch(37.35, 39.62, 279.66°)
OKLaboklab(46.17% -0.0251 -0.1114)
OKLCHoklch(46.17% 0.114 257.3)
XYZxyz(10.0699, 9.7263, 30.6188)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5897 #976A2B
analogous
#2B8E97 #2B5897 #342B97
triadic
#2B5897 #972B58 #58972B
tetradic
#2B5897 #972B8E #976A2B #2B9734
square
#2B5897 #972B8E #976A2B #2B9734
split-complementary
#2B5897 #97342B #8E972B
monochromatic
#102038 #1D3C67 #2B5897 #3974C7 #6895D4

Accessibility & contrast

On white

7.13
#2B5897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5897
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5897#FFFFFF#000000##FFFFFF
##2B58971.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D99
Deuteranopia (green-blind)
#295396
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2b5897;
/* rgb */ color: rgb(43, 88, 151);
/* oklch */ color: oklch(46.2% 0.114 257.3);
Tailwind
colors: {
  custom: {
    50: '#7286b6',
    500: '#2b5897',
    950: '#000000',
  },
}
SCSS
$custom: #2b5897;
$custom-light: #7286b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5897",
  "rgb": {
    "r": 43,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 215,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46167,
    "c": 0.11424,
    "h": 257.3
  },
  "luminance": 0.09727
}

Semantic roles & 50–950 ramp

primary
#2B5897
secondary
#BB9663
accent
#A049DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2B5897

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

Preview Lab → · Contrast checker → · Palette generator →

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