#2B5799#2B5799

#2B5799 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.1% C 0.118 H 258.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2B5799
RGBrgb(43, 87, 153)
HSLhsl(216, 56%, 38%)
HSVhsv(216, 72%, 60%)
CMYKcmyk(71.9%, 43.1%, 0%, 40%)
CIE-LABlab(37.17, 8.06, -40.54)
CIE-LCHlch(37.17, 41.34, 281.25°)
OKLaboklab(46.07% -0.0237 -0.1158)
OKLCHoklch(46.07% 0.118 258.4)
XYZxyz(10.1521, 9.6288, 31.4543)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5799 #996D2B
analogous
#2B8E99 #2B5799 #362B99
triadic
#2B5799 #992B57 #57992B
tetradic
#2B5799 #992B8E #996D2B #2B9936
square
#2B5799 #992B8E #996D2B #2B9936
split-complementary
#2B5799 #99362B #8E992B
monochromatic
#102139 #1E3C69 #2B5799 #3A72C8 #6994D5

Accessibility & contrast

On white

7.18
#2B5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2B5799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5799
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5799#FFFFFF#000000##FFFFFF
##2B57991.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9C
Deuteranopia (green-blind)
#255398
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2b5799;
/* rgb */ color: rgb(43, 87, 153);
/* oklch */ color: oklch(46.1% 0.118 258.4);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#2b5799',
    950: '#000000',
  },
}
SCSS
$custom: #2b5799;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5799",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 216,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46068,
    "c": 0.11823,
    "h": 258.4
  },
  "luminance": 0.0963
}

Semantic roles & 50–950 ramp

primary
#2B5799
secondary
#BC9964
accent
#A348DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2B5799

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

Preview Lab → · Contrast checker → · Palette generator →

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