#2B5FBA#2B5FBA

#2B5FBA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.154 H 260.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2B5FBA
RGBrgb(43, 95, 186)
HSLhsl(218, 62%, 45%)
HSVhsv(218, 77%, 73%)
CMYKcmyk(76.9%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.60, 15.47, -52.99)
CIE-LCHlch(41.60, 55.20, 286.27°)
OKLaboklab(50.16% -0.025 -0.1523)
OKLCHoklch(50.16% 0.154 260.7)
XYZxyz(13.9482, 12.2416, 48.0726)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FBA #BA862B
analogous
#2BA6BA #2B5FBA #3F2BBA
triadic
#2B5FBA #BA2B5F #5FBA2B
tetradic
#2B5FBA #BA2BA6 #BA862B #2BBA3F
square
#2B5FBA #BA2BA6 #BA862B #2BBA3F
split-complementary
#2B5FBA #BA3F2B #A6BA2B
monochromatic
#142C57 #204688 #2B5FBA #4C7ED6 #7EA2E1

Accessibility & contrast

On white

6.09
#2B5FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2B5FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FBA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FBA#FFFFFF#000000##FFFFFF
##2B5FBA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A69BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5fba;
/* rgb */ color: rgb(43, 95, 186);
/* oklch */ color: oklch(50.2% 0.154 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2b5fba',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fba;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fba",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 218.182,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.15431,
    "h": 260.7
  },
  "luminance": 0.12243
}

Semantic roles & 50–950 ramp

primary
#2B5FBA
secondary
#CAAC77
accent
#AA42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2B5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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