#2B5698#2B5698

#2B5698 is a mid, moderate blue. Relative luminance 0.094; OKLCH L 45.8% C 0.118 H 258.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2B5698
RGBrgb(43, 86, 152)
HSLhsl(216, 56%, 38%)
HSVhsv(216, 72%, 60%)
CMYKcmyk(71.7%, 43.4%, 0%, 40.4%)
CIE-LABlab(36.81, 8.34, -40.51)
CIE-LCHlch(36.81, 41.36, 281.63°)
OKLaboklab(45.77% -0.023 -0.1158)
OKLCHoklch(45.77% 0.118 258.8)
XYZxyz(9.9895, 9.4351, 30.9944)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5698 #986D2B
analogous
#2B8C98 #2B5698 #362B98
triadic
#2B5698 #982B56 #56982B
tetradic
#2B5698 #982B8C #986D2B #2B9836
square
#2B5698 #982B8C #986D2B #2B9836
split-complementary
#2B5698 #98362B #8C982B
monochromatic
#102039 #1E3B68 #2B5698 #3971C7 #6993D5

Accessibility & contrast

On white

7.27
#2B5698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2B5698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5698
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5698#FFFFFF#000000##FFFFFF
##2B56981.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9B
Deuteranopia (green-blind)
#245297
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2b5698;
/* rgb */ color: rgb(43, 86, 152);
/* oklch */ color: oklch(45.8% 0.118 258.8);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#2b5698',
    950: '#000000',
  },
}
SCSS
$custom: #2b5698;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5698",
  "rgb": {
    "r": 43,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 216.33,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.11801,
    "h": 258.8
  },
  "luminance": 0.09436
}

Semantic roles & 50–950 ramp

primary
#2B5698
secondary
#BB9964
accent
#A449DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2B5698

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

Preview Lab → · Contrast checker → · Palette generator →

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