#2B5796#2B5796

#2B5796 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.114 H 257.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2B5796
RGBrgb(43, 87, 150)
HSLhsl(215, 55%, 38%)
HSVhsv(215, 71%, 59%)
CMYKcmyk(71.3%, 42%, 0%, 41.2%)
CIE-LABlab(36.99, 6.92, -39.02)
CIE-LCHlch(36.99, 39.63, 280.06°)
OKLaboklab(45.87% -0.0244 -0.1114)
OKLCHoklch(45.87% 0.114 257.7)
XYZxyz(9.9075, 9.5309, 30.1658)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5796 #966A2B
analogous
#2B8C96 #2B5796 #342B96
triadic
#2B5796 #962B57 #57962B
tetradic
#2B5796 #962B8C #966A2B #2B9634
square
#2B5796 #962B8C #966A2B #2B9634
split-complementary
#2B5796 #96342B #8C962B
monochromatic
#102037 #1D3B66 #2B5796 #3973C6 #6894D4

Accessibility & contrast

On white

7.23
#2B5796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5796
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5796#FFFFFF#000000##FFFFFF
##2B57961.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b5796;
/* rgb */ color: rgb(43, 87, 150);
/* oklch */ color: oklch(45.9% 0.114 257.7);
Tailwind
colors: {
  custom: {
    50: '#7285b5',
    500: '#2b5796',
    950: '#000000',
  },
}
SCSS
$custom: #2b5796;
$custom-light: #7285b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5796",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 215.327,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45869,
    "c": 0.11401,
    "h": 257.7
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#2B5796
secondary
#BA9663
accent
#A149DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2B5796

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

Preview Lab → · Contrast checker → · Palette generator →

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