#2E51AE#2E51AE

#2E51AE is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.154 H 265.3°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2E51AE
RGBrgb(46, 81, 174)
HSLhsl(224, 58%, 43%)
HSVhsv(224, 74%, 68%)
CMYKcmyk(73.6%, 53.4%, 0%, 31.8%)
CIE-LABlab(36.97, 20.46, -53.40)
CIE-LCHlch(36.97, 57.19, 290.97°)
OKLaboklab(46.4% -0.0127 -0.1537)
OKLCHoklch(46.4% 0.154 265.3)
XYZxyz(11.7064, 9.5204, 41.2569)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51AE #AE8B2E
analogous
#2E91AE #2E51AE #4B2EAE
triadic
#2E51AE #AE2E51 #51AE2E
tetradic
#2E51AE #AE2E91 #AE8B2E #2EAE4B
square
#2E51AE #AE2E91 #AE8B2E #2EAE4B
split-complementary
#2E51AE #AE4B2E #91AE2E
monochromatic
#14244D #213A7E #2E51AE #4A6ECF #7A95DC

Accessibility & contrast

On white

7.23
#2E51AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2E51AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51AE
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51AE#FFFFFF#000000##FFFFFF
##2E51AE1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5DB1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e51ae;
/* rgb */ color: rgb(46, 81, 174);
/* oklch */ color: oklch(46.4% 0.154 265.3);
Tailwind
colors: {
  custom: {
    50: '#7881c7',
    500: '#2e51ae',
    950: '#000000',
  },
}
SCSS
$custom: #2e51ae;
$custom-light: #7881c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51ae",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 223.594,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46397,
    "c": 0.15423,
    "h": 265.3
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#2E51AE
secondary
#C4AE74
accent
#B746E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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