#2B5BB8#2B5BB8

#2B5BB8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.156 H 261.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2B5BB8
RGBrgb(43, 91, 184)
HSLhsl(220, 62%, 45%)
HSVhsv(220, 77%, 72%)
CMYKcmyk(76.6%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.34, 17.31, -53.85)
CIE-LCHlch(40.34, 56.57, 287.82°)
OKLaboklab(49.15% -0.022 -0.1549)
OKLCHoklch(49.15% 0.156 261.9)
XYZxyz(13.3860, 11.4549, 46.8436)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BB8 #B8882B
analogous
#2BA2B8 #2B5BB8 #412BB8
triadic
#2B5BB8 #B82B5B #5BB82B
tetradic
#2B5BB8 #B82BA2 #B8882B #2BB841
square
#2B5BB8 #B82BA2 #B8882B #2BB841
split-complementary
#2B5BB8 #B8412B #A2B82B
monochromatic
#142A55 #1F4286 #2B5BB8 #4B7AD5 #7D9FE1

Accessibility & contrast

On white

6.38
#2B5BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2B5BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BB8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BB8#FFFFFF#000000##FFFFFF
##2B5BB81.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2b5bb8;
/* rgb */ color: rgb(43, 91, 184);
/* oklch */ color: oklch(49.1% 0.156 261.9);
Tailwind
colors: {
  custom: {
    50: '#7988ce',
    500: '#2b5bb8',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bb8;
$custom-light: #7988ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bb8",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 219.574,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4915,
    "c": 0.15646,
    "h": 261.9
  },
  "luminance": 0.11456
}

Semantic roles & 50–950 ramp

primary
#2B5BB8
secondary
#C9AD76
accent
#AE43E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2B5BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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