#2E51BD#2E51BD

#2E51BD is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.175 H 266.2°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2E51BD
RGBrgb(46, 81, 189)
HSLhsl(225, 61%, 46%)
HSVhsv(225, 76%, 74%)
CMYKcmyk(75.7%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.09, 26.12, -60.41)
CIE-LCHlch(38.09, 65.82, 293.38°)
OKLaboklab(47.6% -0.0117 -0.1743)
OKLCHoklch(47.6% 0.175 266.2)
XYZxyz(13.2512, 10.1384, 49.3928)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51BD #BD9A2E
analogous
#2E98BD #2E51BD #532EBD
triadic
#2E51BD #BD2E51 #51BD2E
tetradic
#2E51BD #BD2E98 #BD9A2E #2EBD53
square
#2E51BD #BD2E98 #BD9A2E #2EBD53
split-complementary
#2E51BD #BD532E #98BD2E
monochromatic
#16275B #223C8C #2E51BD #5373D5 #849BE1

Accessibility & contrast

On white

6.94
#2E51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2E51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51BD
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51BD#FFFFFF#000000##FFFFFF
##2E51BD1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e51bd;
/* rgb */ color: rgb(46, 81, 189);
/* oklch */ color: oklch(47.6% 0.175 266.2);
Tailwind
colors: {
  custom: {
    50: '#7c81d2',
    500: '#2e51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2e51bd;
$custom-light: #7c81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51bd",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 225.315,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47596,
    "c": 0.17472,
    "h": 266.2
  },
  "luminance": 0.1014
}

Semantic roles & 50–950 ramp

primary
#2E51BD
secondary
#CAB77C
accent
#BD44E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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