#2B5BC2#2B5BC2

#2B5BC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.170 H 262.9°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2B5BC2
RGBrgb(43, 91, 194)
HSLhsl(221, 64%, 46%)
HSVhsv(221, 78%, 76%)
CMYKcmyk(77.8%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.04, 21.13, -58.55)
CIE-LCHlch(41.04, 62.24, 289.85°)
OKLaboklab(49.91% -0.0209 -0.1687)
OKLCHoklch(49.91% 0.17 262.9)
XYZxyz(14.4715, 11.8891, 52.5606)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5BC2 #C2922B
analogous
#2BA7C2 #2B5BC2 #472BC2
triadic
#2B5BC2 #C22B5B #5BC22B
tetradic
#2B5BC2 #C22BA7 #C2922B #2BC247
square
#2B5BC2 #C22BA7 #C2922B #2BC247
split-complementary
#2B5BC2 #C2472B #A7C22B
monochromatic
#152C5E #204490 #2B5BC2 #527DD9 #84A2E4

Accessibility & contrast

On white

6.22
#2B5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2B5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5BC2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5BC2#FFFFFF#000000##FFFFFF
##2B5BC21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B68C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2b5bc2;
/* rgb */ color: rgb(43, 91, 194);
/* oklch */ color: oklch(49.9% 0.170 262.9);
Tailwind
colors: {
  custom: {
    50: '#7b88d5',
    500: '#2b5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #2b5bc2;
$custom-light: #7b88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5bc2",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 220.927,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49909,
    "c": 0.17001,
    "h": 262.9
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#2B5BC2
secondary
#CDB37C
accent
#B241E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2B5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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