#2E51AB#2E51AB

#2E51AB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.150 H 265.0°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2E51AB
RGBrgb(46, 81, 171)
HSLhsl(223, 58%, 43%)
HSVhsv(223, 73%, 67%)
CMYKcmyk(73.1%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.75, 19.32, -51.97)
CIE-LCHlch(36.75, 55.45, 290.40°)
OKLaboklab(46.17% -0.013 -0.1495)
OKLCHoklch(46.17% 0.15 265)
XYZxyz(11.4172, 9.4048, 39.7338)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51AB #AB882E
analogous
#2E90AB #2E51AB #492EAB
triadic
#2E51AB #AB2E51 #51AB2E
tetradic
#2E51AB #AB2E90 #AB882E #2EAB49
square
#2E51AB #AB2E90 #AB882E #2EAB49
split-complementary
#2E51AB #AB492E #90AB2E
monochromatic
#14234B #213A7B #2E51AB #486ECE #7994DB

Accessibility & contrast

On white

7.29
#2E51AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2E51AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51AB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51AB#FFFFFF#000000##FFFFFF
##2E51AB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155CAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e51ab;
/* rgb */ color: rgb(46, 81, 171);
/* oklch */ color: oklch(46.2% 0.150 265.0);
Tailwind
colors: {
  custom: {
    50: '#7881c5',
    500: '#2e51ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e51ab;
$custom-light: #7881c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51ab",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 223.2,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46165,
    "c": 0.15006,
    "h": 265
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#2E51AB
secondary
#C3AC72
accent
#B647E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E51AB

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

Preview Lab → · Contrast checker → · Palette generator →

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