#2B5FB5#2B5FB5

#2B5FB5 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.147 H 260.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB5
RGBrgb(43, 95, 181)
HSLhsl(217, 62%, 44%)
HSVhsv(217, 76%, 71%)
CMYKcmyk(76.2%, 47.5%, 0%, 29%)
CIE-LABlab(41.27, 13.55, -50.59)
CIE-LCHlch(41.27, 52.38, 285.00°)
OKLaboklab(49.8% -0.0257 -0.1452)
OKLCHoklch(49.8% 0.147 260)
XYZxyz(13.4259, 12.0327, 45.3221)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB5 #B5812B
analogous
#2BA4B5 #2B5FB5 #3C2BB5
triadic
#2B5FB5 #B52B5F #5FB52B
tetradic
#2B5FB5 #B52BA4 #B5812B #2BB53C
square
#2B5FB5 #B52BA4 #B5812B #2BB53C
split-complementary
#2B5FB5 #B53C2B #A4B52B
monochromatic
#142B52 #1F4584 #2B5FB5 #497ED4 #7BA1E0

Accessibility & contrast

On white

6.16
#2B5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2B5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB5#FFFFFF#000000##FFFFFF
##2B5FB51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#075BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5fb5;
/* rgb */ color: rgb(43, 95, 181);
/* oklch */ color: oklch(49.8% 0.147 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2b5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb5;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb5",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 217.391,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.498,
    "c": 0.14749,
    "h": 260
  },
  "luminance": 0.12034
}

Semantic roles & 50–950 ramp

primary
#2B5FB5
secondary
#C8A874
accent
#A843E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2B5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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