#2B5EA6#2B5EA6

#2B5EA6 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.5% C 0.128 H 257.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2B5EA6
RGBrgb(43, 94, 166)
HSLhsl(215, 59%, 41%)
HSVhsv(215, 74%, 65%)
CMYKcmyk(74.1%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.03, 8.47, -43.73)
CIE-LCHlch(40.03, 44.54, 280.96°)
OKLaboklab(48.54% -0.0276 -0.1251)
OKLCHoklch(48.54% 0.128 257.6)
XYZxyz(11.8794, 11.2709, 37.6184)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EA6 #A6732B
analogous
#2B9BA6 #2B5EA6 #352BA6
triadic
#2B5EA6 #A62B5E #5EA62B
tetradic
#2B5EA6 #A62B9B #A6732B #2BA635
square
#2B5EA6 #A62B9B #A6732B #2BA635
split-complementary
#2B5EA6 #A6352B #9BA62B
monochromatic
#122745 #1E4275 #2B5EA6 #417BCE #719DDA

Accessibility & contrast

On white

6.45
#2B5EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2B5EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EA6
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EA6#FFFFFF#000000##FFFFFF
##2B5EA61.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A9
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2b5ea6;
/* rgb */ color: rgb(43, 94, 166);
/* oklch */ color: oklch(48.5% 0.128 257.6);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2b5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2b5ea6;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5ea6",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 215.122,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48542,
    "c": 0.12808,
    "h": 257.6
  },
  "luminance": 0.11272
}

Semantic roles & 50–950 ramp

primary
#2B5EA6
secondary
#C19E6B
accent
#A146E2
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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