#2B5CBA#2B5CBA

#2B5CBA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.158 H 261.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2B5CBA
RGBrgb(43, 92, 186)
HSLhsl(219, 62%, 45%)
HSVhsv(219, 77%, 73%)
CMYKcmyk(76.9%, 50.5%, 0%, 27.1%)
CIE-LABlab(40.75, 17.42, -54.35)
CIE-LCHlch(40.75, 57.07, 287.77°)
OKLaboklab(49.51% -0.0226 -0.1563)
OKLCHoklch(49.51% 0.158 261.8)
XYZxyz(13.6831, 11.7115, 47.9842)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5CBA #BA892B
analogous
#2BA3BA #2B5CBA #422BBA
triadic
#2B5CBA #BA2B5C #5CBA2B
tetradic
#2B5CBA #BA2BA3 #BA892B #2BBA42
square
#2B5CBA #BA2BA3 #BA892B #2BBA42
split-complementary
#2B5CBA #BA422B #A3BA2B
monochromatic
#142B57 #204388 #2B5CBA #4C7CD6 #7EA0E1

Accessibility & contrast

On white

6.28
#2B5CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2B5CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5CBA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5CBA#FFFFFF#000000##FFFFFF
##2B5CBA1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2b5cba;
/* rgb */ color: rgb(43, 92, 186);
/* oklch */ color: oklch(49.5% 0.158 261.8);
Tailwind
colors: {
  custom: {
    50: '#7989cf',
    500: '#2b5cba',
    950: '#000000',
  },
}
SCSS
$custom: #2b5cba;
$custom-light: #7989cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5cba",
  "rgb": {
    "r": 43,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 219.441,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49513,
    "c": 0.15796,
    "h": 261.8
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#2B5CBA
secondary
#CAAD77
accent
#AE42E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2B5CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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