#2B5BB7#2B5BB7

#2B5BB7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.155 H 261.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2B5BB7
RGBrgb(43, 91, 183)
HSLhsl(219, 62%, 44%)
HSVhsv(219, 77%, 72%)
CMYKcmyk(76.5%, 50.3%, 0%, 28.2%)
CIE-LABlab(40.27, 16.93, -53.38)
CIE-LCHlch(40.27, 56.00, 287.60°)
OKLaboklab(49.08% -0.0222 -0.1535)
OKLCHoklch(49.08% 0.155 261.8)
XYZxyz(13.2815, 11.4132, 46.2935)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BB7 #B7872B
analogous
#2BA1B7 #2B5BB7 #412BB7
triadic
#2B5BB7 #B72B5B #5BB72B
tetradic
#2B5BB7 #B72BA1 #B7872B #2BB741
square
#2B5BB7 #B72BA1 #B7872B #2BB741
split-complementary
#2B5BB7 #B7412B #A1B72B
monochromatic
#142A54 #1F4285 #2B5BB7 #4B7AD5 #7C9EE0

Accessibility & contrast

On white

6.40
#2B5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2B5BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BB7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BB7#FFFFFF#000000##FFFFFF
##2B5BB71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2b5bb7;
/* rgb */ color: rgb(43, 91, 183);
/* oklch */ color: oklch(49.1% 0.155 261.8);
Tailwind
colors: {
  custom: {
    50: '#7988cd',
    500: '#2b5bb7',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bb7;
$custom-light: #7988cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bb7",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 219.429,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49076,
    "c": 0.15509,
    "h": 261.8
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#2B5BB7
secondary
#C9AC75
accent
#AD43E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B5BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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