#2B5FBB#2B5FBB

#2B5FBB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.156 H 260.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2B5FBB
RGBrgb(43, 95, 187)
HSLhsl(218, 63%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(77%, 49.2%, 0%, 26.7%)
CIE-LABlab(41.66, 15.85, -53.46)
CIE-LCHlch(41.66, 55.76, 286.51°)
OKLaboklab(50.23% -0.0248 -0.1537)
OKLCHoklch(50.23% 0.156 260.8)
XYZxyz(14.0549, 12.2843, 48.6344)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FBB #BB872B
analogous
#2BA7BB #2B5FBB #3F2BBB
triadic
#2B5FBB #BB2B5F #5FBB2B
tetradic
#2B5FBB #BB2BA7 #BB872B #2BBB3F
square
#2B5FBB #BB2BA7 #BB872B #2BBB3F
split-complementary
#2B5FBB #BB3F2B #A7BB2B
monochromatic
#142C57 #204689 #2B5FBB #4D7FD6 #7FA2E2

Accessibility & contrast

On white

6.07
#2B5FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2B5FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FBB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FBB#FFFFFF#000000##FFFFFF
##2B5FBB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2969BE
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5fbb;
/* rgb */ color: rgb(43, 95, 187);
/* oklch */ color: oklch(50.2% 0.156 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bd0',
    500: '#2b5fbb',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fbb;
$custom-light: #798bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fbb",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 218.333,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50231,
    "c": 0.15567,
    "h": 260.8
  },
  "luminance": 0.12286
}

Semantic roles & 50–950 ramp

primary
#2B5FBB
secondary
#CAAC78
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2B5FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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