#2B5EB5#2B5EB5

#2B5EB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.149 H 260.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2B5EB5
RGBrgb(43, 94, 181)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 76%, 71%)
CMYKcmyk(76.2%, 48.1%, 0%, 29%)
CIE-LABlab(40.98, 14.20, -51.05)
CIE-LCHlch(40.98, 52.99, 285.55°)
OKLaboklab(49.58% -0.0249 -0.1466)
OKLCHoklch(49.58% 0.149 260.4)
XYZxyz(13.3364, 11.8537, 45.2922)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5EB5 #B5822B
analogous
#2BA3B5 #2B5EB5 #3D2BB5
triadic
#2B5EB5 #B52B5E #5EB52B
tetradic
#2B5EB5 #B52BA3 #B5822B #2BB53D
square
#2B5EB5 #B52BA3 #B5822B #2BB53D
split-complementary
#2B5EB5 #B53D2B #A3B52B
monochromatic
#142B52 #1F4484 #2B5EB5 #497DD4 #7BA0E0

Accessibility & contrast

On white

6.23
#2B5EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2B5EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5EB5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5EB5#FFFFFF#000000##FFFFFF
##2B5EB51.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B8
Deuteranopia (green-blind)
#005BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5eb5;
/* rgb */ color: rgb(43, 94, 181);
/* oklch */ color: oklch(49.6% 0.149 260.4);
Tailwind
colors: {
  custom: {
    50: '#788bcc',
    500: '#2b5eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2b5eb5;
$custom-light: #788bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5eb5",
  "rgb": {
    "r": 43,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 217.826,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.1487,
    "h": 260.4
  },
  "luminance": 0.11855
}

Semantic roles & 50–950 ramp

primary
#2B5EB5
secondary
#C8A974
accent
#A943E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2B5EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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