#2B5BA1#2B5BA1

#2B5BA1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.5% C 0.125 H 258.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2B5BA1
RGBrgb(43, 91, 161)
HSLhsl(216, 58%, 40%)
HSVhsv(216, 73%, 63%)
CMYKcmyk(73.3%, 43.5%, 0%, 36.9%)
CIE-LABlab(38.84, 8.51, -42.66)
CIE-LCHlch(38.84, 43.50, 281.28°)
OKLaboklab(47.52% -0.0259 -0.122)
OKLCHoklch(47.52% 0.125 258)
XYZxyz(11.1680, 10.5678, 35.1625)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BA1 #A1712B
analogous
#2B96A1 #2B5BA1 #362BA1
triadic
#2B5BA1 #A12B5B #5BA12B
tetradic
#2B5BA1 #A12B96 #A1712B #2BA136
square
#2B5BA1 #A12B96 #A1712B #2BA136
split-complementary
#2B5BA1 #A1362B #96A12B
monochromatic
#112440 #1E4071 #2B5BA1 #3E77CB #6E99D8

Accessibility & contrast

On white

6.74
#2B5BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2B5BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BA1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BA1#FFFFFF#000000##FFFFFF
##2B5BA11.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3961A4
Deuteranopia (green-blind)
#2456A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b5ba1;
/* rgb */ color: rgb(43, 91, 161);
/* oklch */ color: oklch(47.5% 0.125 258.0);
Tailwind
colors: {
  custom: {
    50: '#7488bd',
    500: '#2b5ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2b5ba1;
$custom-light: #7488bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5ba1",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 215.593,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.47522,
    "c": 0.12469,
    "h": 258
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#2B5BA1
secondary
#BF9C69
accent
#A247E1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B5BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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