#2E51BE#2E51BE

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

Color values

HEX#2E51BE
RGBrgb(46, 81, 190)
HSLhsl(225, 61%, 46%)
HSVhsv(225, 76%, 75%)
CMYKcmyk(75.8%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.17, 26.49, -60.87)
CIE-LCHlch(38.17, 66.39, 293.52°)
OKLaboklab(47.68% -0.0117 -0.1757)
OKLCHoklch(47.68% 0.176 266.2)
XYZxyz(13.3601, 10.1819, 49.9664)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51BE #BE9B2E
analogous
#2E99BE #2E51BE #532EBE
triadic
#2E51BE #BE2E51 #51BE2E
tetradic
#2E51BE #BE2E99 #BE9B2E #2EBE53
square
#2E51BE #BE2E99 #BE9B2E #2EBE53
split-complementary
#2E51BE #BE532E #99BE2E
monochromatic
#16275B #223C8D #2E51BE #5473D6 #859BE1

Accessibility & contrast

On white

6.92
#2E51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2E51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51BE
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51BE#FFFFFF#000000##FFFFFF
##2E51BE1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e51be;
/* rgb */ color: rgb(46, 81, 190);
/* oklch */ color: oklch(47.7% 0.176 266.2);
Tailwind
colors: {
  custom: {
    50: '#7c81d2',
    500: '#2e51be',
    950: '#000000',
  },
}
SCSS
$custom: #2e51be;
$custom-light: #7c81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51be",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 225.417,
    "s": 61.017,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47679,
    "c": 0.17607,
    "h": 266.2
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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