#2B5397#2B5397

#2B5397 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.120 H 260.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2B5397
RGBrgb(43, 83, 151)
HSLhsl(218, 56%, 38%)
HSVhsv(218, 72%, 59%)
CMYKcmyk(71.5%, 45%, 0%, 40.8%)
CIE-LABlab(35.86, 9.93, -41.44)
CIE-LCHlch(35.86, 42.61, 283.47°)
OKLaboklab(45.01% -0.0202 -0.1185)
OKLCHoklch(45.01% 0.12 260.3)
XYZxyz(9.6734, 8.9335, 30.4867)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5397 #976F2B
analogous
#2B8997 #2B5397 #392B97
triadic
#2B5397 #972B53 #53972B
tetradic
#2B5397 #972B89 #976F2B #2B9739
square
#2B5397 #972B89 #976F2B #2B9739
split-complementary
#2B5397 #97392B #89972B
monochromatic
#101F38 #1D3967 #2B5397 #396DC7 #6890D4

Accessibility & contrast

On white

7.54
#2B5397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2B5397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5397
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5397#FFFFFF#000000##FFFFFF
##2B53971.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2b5397;
/* rgb */ color: rgb(43, 83, 151);
/* oklch */ color: oklch(45.0% 0.120 260.3);
Tailwind
colors: {
  custom: {
    50: '#7282b6',
    500: '#2b5397',
    950: '#000000',
  },
}
SCSS
$custom: #2b5397;
$custom-light: #7282b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5397",
  "rgb": {
    "r": 43,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 217.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45014,
    "c": 0.12024,
    "h": 260.3
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#2B5397
secondary
#BB9A63
accent
#A749DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2B5397

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

Preview Lab → · Contrast checker → · Palette generator →

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