#2E51D3#2E51D3

#2E51D3 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 49.5% C 0.204 H 266.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2E51D3
RGBrgb(46, 81, 211)
HSLhsl(227, 65%, 50%)
HSVhsv(227, 78%, 83%)
CMYKcmyk(78.2%, 61.6%, 0%, 17.3%)
CIE-LABlab(39.86, 34.28, -70.29)
CIE-LCHlch(39.86, 78.20, 296.00°)
OKLaboklab(49.47% -0.0113 -0.2033)
OKLCHoklch(49.47% 0.204 266.8)
XYZxyz(15.8229, 11.1670, 62.9369)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51D3 #D3B02E
analogous
#2EA3D3 #2E51D3 #5E2ED3
triadic
#2E51D3 #D32E51 #51D32E
tetradic
#2E51D3 #D32EA3 #D3B02E #2ED35E
square
#2E51D3 #D32EA3 #D3B02E #2ED35E
split-complementary
#2E51D3 #D35E2E #A3D32E
monochromatic
#172A6F #223DA2 #2E51D3 #617BDE #93A5E8

Accessibility & contrast

On white

6.49
#2E51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2E51D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51D3
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51D3#FFFFFF#000000##FFFFFF
##2E51D31.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2e51d3;
/* rgb */ color: rgb(46, 81, 211);
/* oklch */ color: oklch(49.5% 0.204 266.8);
Tailwind
colors: {
  custom: {
    50: '#8181e2',
    500: '#2e51d3',
    950: '#000000',
  },
}
SCSS
$custom: #2e51d3;
$custom-light: #8181e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51d3",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 227.273,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49468,
    "c": 0.20362,
    "h": 266.8
  },
  "luminance": 0.11169
}

Semantic roles & 50–950 ramp

primary
#2E51D3
secondary
#D3C48A
accent
#C440E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2E51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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