#2B5FB1#2B5FB1

#2B5FB1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.5% C 0.142 H 259.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB1
RGBrgb(43, 95, 177)
HSLhsl(217, 61%, 43%)
HSVhsv(217, 76%, 69%)
CMYKcmyk(75.7%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.01, 12.02, -48.66)
CIE-LCHlch(41.01, 50.12, 283.88°)
OKLaboklab(49.52% -0.0264 -0.1395)
OKLCHoklch(49.52% 0.142 259.3)
XYZxyz(13.0214, 11.8709, 43.1915)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB1 #B17D2B
analogous
#2BA2B1 #2B5FB1 #3A2BB1
triadic
#2B5FB1 #B12B5F #5FB12B
tetradic
#2B5FB1 #B12BA2 #B17D2B #2BB13A
square
#2B5FB1 #B12BA2 #B17D2B #2BB13A
split-complementary
#2B5FB1 #B13A2B #A2B12B
monochromatic
#132A4F #1F4580 #2B5FB1 #477DD2 #78A0DE

Accessibility & contrast

On white

6.22
#2B5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2B5FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB1#FFFFFF#000000##FFFFFF
##2B5FB11.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5fb1;
/* rgb */ color: rgb(43, 95, 177);
/* oklch */ color: oklch(49.5% 0.142 259.3);
Tailwind
colors: {
  custom: {
    50: '#778bc9',
    500: '#2b5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb1;
$custom-light: #778bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb1",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 216.716,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49518,
    "c": 0.14203,
    "h": 259.3
  },
  "luminance": 0.11872
}

Semantic roles & 50–950 ramp

primary
#2B5FB1
secondary
#C6A572
accent
#A644E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2B5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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