#2B5EBA#2B5EBA

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

Color values

HEX#2B5EBA
RGBrgb(43, 94, 186)
HSLhsl(219, 62%, 45%)
HSVhsv(219, 77%, 73%)
CMYKcmyk(76.9%, 49.5%, 0%, 27.1%)
CIE-LABlab(41.32, 16.12, -53.44)
CIE-LCHlch(41.32, 55.82, 286.78°)
OKLaboklab(49.94% -0.0241 -0.1536)
OKLCHoklch(49.94% 0.156 261.1)
XYZxyz(13.8587, 12.0626, 48.0428)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EBA #BA872B
analogous
#2BA6BA #2B5EBA #3F2BBA
triadic
#2B5EBA #BA2B5E #5EBA2B
tetradic
#2B5EBA #BA2BA6 #BA872B #2BBA3F
square
#2B5EBA #BA2BA6 #BA872B #2BBA3F
split-complementary
#2B5EBA #BA3F2B #A6BA2B
monochromatic
#142C57 #204588 #2B5EBA #4C7DD6 #7EA2E1

Accessibility & contrast

On white

6.15
#2B5EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2B5EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EBA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EBA#FFFFFF#000000##FFFFFF
##2B5EBA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5eba;
/* rgb */ color: rgb(43, 94, 186);
/* oklch */ color: oklch(49.9% 0.156 261.1);
Tailwind
colors: {
  custom: {
    50: '#798bcf',
    500: '#2b5eba',
    950: '#000000',
  },
}
SCSS
$custom: #2b5eba;
$custom-light: #798bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5eba",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 218.601,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49942,
    "c": 0.15552,
    "h": 261.1
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#2B5EBA
secondary
#CAAC77
accent
#AB42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2B5EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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