#2B5FB7#2B5FB7

#2B5FB7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.150 H 260.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2B5FB7
RGBrgb(43, 95, 183)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 77%, 72%)
CMYKcmyk(76.5%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.40, 14.32, -51.55)
CIE-LCHlch(41.40, 53.50, 285.52°)
OKLaboklab(49.94% -0.0254 -0.1481)
OKLCHoklch(49.94% 0.15 260.3)
XYZxyz(13.6326, 12.1154, 46.4106)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FB7 #B7832B
analogous
#2BA5B7 #2B5FB7 #3D2BB7
triadic
#2B5FB7 #B72B5F #5FB72B
tetradic
#2B5FB7 #B72BA5 #B7832B #2BB73D
square
#2B5FB7 #B72BA5 #B7832B #2BB73D
split-complementary
#2B5FB7 #B73D2B #A5B72B
monochromatic
#142C54 #1F4585 #2B5FB7 #4B7ED5 #7CA1E0

Accessibility & contrast

On white

6.13
#2B5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2B5FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FB7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FB7#FFFFFF#000000##FFFFFF
##2B5FB71.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b5fb7;
/* rgb */ color: rgb(43, 95, 183);
/* oklch */ color: oklch(49.9% 0.150 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bcd',
    500: '#2b5fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fb7;
$custom-light: #798bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fb7",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 217.714,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49942,
    "c": 0.15022,
    "h": 260.3
  },
  "luminance": 0.12117
}

Semantic roles & 50–950 ramp

primary
#2B5FB7
secondary
#C9AA75
accent
#A943E5
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2B5FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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