#2E51BF#2E51BF

#2E51BF is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.177 H 266.2°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2E51BF
RGBrgb(46, 81, 191)
HSLhsl(226, 61%, 46%)
HSVhsv(226, 76%, 75%)
CMYKcmyk(75.9%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.24, 26.87, -61.33)
CIE-LCHlch(38.24, 66.96, 293.66°)
OKLaboklab(47.76% -0.0116 -0.177)
OKLCHoklch(47.76% 0.177 266.2)
XYZxyz(13.4698, 10.2258, 50.5440)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51BF #BF9C2E
analogous
#2E9ABF #2E51BF #542EBF
triadic
#2E51BF #BF2E51 #51BF2E
tetradic
#2E51BF #BF2E9A #BF9C2E #2EBF54
square
#2E51BF #BF2E9A #BF9C2E #2EBF54
split-complementary
#2E51BF #BF542E #9ABF2E
monochromatic
#16275C #223C8E #2E51BF #5474D6 #869CE2

Accessibility & contrast

On white

6.90
#2E51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2E51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51BF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51BF#FFFFFF#000000##FFFFFF
##2E51BF1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e51bf;
/* rgb */ color: rgb(46, 81, 191);
/* oklch */ color: oklch(47.8% 0.177 266.2);
Tailwind
colors: {
  custom: {
    50: '#7c81d3',
    500: '#2e51bf',
    950: '#000000',
  },
}
SCSS
$custom: #2e51bf;
$custom-light: #7c81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51bf",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 225.517,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47761,
    "c": 0.1774,
    "h": 266.2
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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