#2B51B9#2B51B9

#2B51B9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.170 H 265.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2B51B9
RGBrgb(43, 81, 185)
HSLhsl(224, 62%, 45%)
HSVhsv(224, 77%, 73%)
CMYKcmyk(76.8%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.66, 24.27, -58.77)
CIE-LCHlch(37.66, 63.58, 292.44°)
OKLaboklab(47.15% -0.0143 -0.1695)
OKLCHoklch(47.15% 0.17 265.2)
XYZxyz(12.6926, 9.8998, 47.1314)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51B9 #B9932B
analogous
#2B98B9 #2B51B9 #4C2BB9
triadic
#2B51B9 #B92B51 #51B92B
tetradic
#2B51B9 #B92B98 #B9932B #2BB94C
square
#2B51B9 #B92B98 #B9932B #2BB94C
split-complementary
#2B51B9 #B94C2B #98B92B
monochromatic
#142656 #1F3B87 #2B51B9 #4C71D5 #7E98E1

Accessibility & contrast

On white

7.05
#2B51B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2B51B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B51B9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51B9#FFFFFF#000000##FFFFFF
##2B51B91.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2b51b9;
/* rgb */ color: rgb(43, 81, 185);
/* oklch */ color: oklch(47.1% 0.170 265.2);
Tailwind
colors: {
  custom: {
    50: '#7a81cf',
    500: '#2b51b9',
    950: '#000000',
  },
}
SCSS
$custom: #2b51b9;
$custom-light: #7a81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51b9",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 223.944,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47145,
    "c": 0.17016,
    "h": 265.2
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#2B51B9
secondary
#C9B376
accent
#BA42E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2B51B9

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

Preview Lab → · Contrast checker → · Palette generator →

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