#2B51B6#2B51B6

#2B51B6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.166 H 265.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2B51B6
RGBrgb(43, 81, 182)
HSLhsl(224, 62%, 44%)
HSVhsv(224, 76%, 71%)
CMYKcmyk(76.4%, 55.5%, 0%, 28.6%)
CIE-LABlab(37.43, 23.13, -57.38)
CIE-LCHlch(37.43, 61.86, 291.95°)
OKLaboklab(46.9% -0.0145 -0.1655)
OKLCHoklch(46.9% 0.166 265)
XYZxyz(12.3792, 9.7745, 45.4811)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51B6 #B6902B
analogous
#2B97B6 #2B51B6 #4B2BB6
triadic
#2B51B6 #B62B51 #51B62B
tetradic
#2B51B6 #B62B97 #B6902B #2BB64B
square
#2B51B6 #B62B97 #B6902B #2BB64B
split-complementary
#2B51B6 #B64B2B #97B62B
monochromatic
#142553 #1F3B84 #2B51B6 #4A70D4 #7B97E0

Accessibility & contrast

On white

7.11
#2B51B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2B51B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B51B6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51B6#FFFFFF#000000##FFFFFF
##2B51B61.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2b51b6;
/* rgb */ color: rgb(43, 81, 182);
/* oklch */ color: oklch(46.9% 0.166 265.0);
Tailwind
colors: {
  custom: {
    50: '#7981cd',
    500: '#2b51b6',
    950: '#000000',
  },
}
SCSS
$custom: #2b51b6;
$custom-light: #7981cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51b6",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 182
  },
  "hsl": {
    "h": 223.597,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46902,
    "c": 0.16609,
    "h": 265
  },
  "luminance": 0.09776
}

Semantic roles & 50–950 ramp

primary
#2B51B6
secondary
#C8B175
accent
#B943E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2B51B6

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

Preview Lab → · Contrast checker → · Palette generator →

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