#2B5BC7#2B5BC7

#2B5BC7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.177 H 263.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2B5BC7
RGBrgb(43, 91, 199)
HSLhsl(222, 64%, 47%)
HSVhsv(222, 78%, 78%)
CMYKcmyk(78.4%, 54.3%, 0%, 22%)
CIE-LABlab(41.40, 23.03, -60.86)
CIE-LCHlch(41.40, 65.07, 290.73°)
OKLaboklab(50.3% -0.0204 -0.1755)
OKLCHoklch(50.3% 0.177 263.4)
XYZxyz(15.0425, 12.1175, 55.5679)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BC7 #C7972B
analogous
#2BA9C7 #2B5BC7 #492BC7
triadic
#2B5BC7 #C72B5B #5BC72B
tetradic
#2B5BC7 #C72BA9 #C7972B #2BC749
square
#2B5BC7 #C72BA9 #C7972B #2BC749
split-complementary
#2B5BC7 #C7492B #A9C72B
monochromatic
#152D62 #204495 #2B5BC7 #557EDA #87A4E5

Accessibility & contrast

On white

6.13
#2B5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2B5BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BC7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BC7#FFFFFF#000000##FFFFFF
##2B5BC71.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2b5bc7;
/* rgb */ color: rgb(43, 91, 199);
/* oklch */ color: oklch(50.3% 0.177 263.4);
Tailwind
colors: {
  custom: {
    50: '#7c88d9',
    500: '#2b5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bc7;
$custom-light: #7c88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bc7",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 221.538,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50299,
    "c": 0.1767,
    "h": 263.4
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#2B5BC7
secondary
#CFB67F
accent
#B440E7
background
#F8F8FD
surface
#EFEFFB
border
#CACAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2B5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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