#2B5FB8#2B5FB8

#2B5FB8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.152 H 260.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB8
RGBrgb(43, 95, 184)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(76.6%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.46, 14.70, -52.03)
CIE-LCHlch(41.46, 54.07, 285.78°)
OKLaboklab(50.01% -0.0253 -0.1495)
OKLCHoklch(50.01% 0.152 260.4)
XYZxyz(13.7371, 12.1571, 46.9607)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB8 #B8842B
analogous
#2BA6B8 #2B5FB8 #3D2BB8
triadic
#2B5FB8 #B82B5F #5FB82B
tetradic
#2B5FB8 #B82BA6 #B8842B #2BB83D
square
#2B5FB8 #B82BA6 #B8842B #2BB83D
split-complementary
#2B5FB8 #B83D2B #A6B82B
monochromatic
#142C55 #1F4586 #2B5FB8 #4B7ED5 #7DA2E1

Accessibility & contrast

On white

6.12
#2B5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2B5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB8#FFFFFF#000000##FFFFFF
##2B5FB81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5fb8;
/* rgb */ color: rgb(43, 95, 184);
/* oklch */ color: oklch(50.0% 0.152 260.4);
Tailwind
colors: {
  custom: {
    50: '#798bce',
    500: '#2b5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb8;
$custom-light: #798bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb8",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 217.872,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50014,
    "c": 0.15159,
    "h": 260.4
  },
  "luminance": 0.12159
}

Semantic roles & 50–950 ramp

primary
#2B5FB8
secondary
#C9AA76
accent
#A943E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2B5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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