#2E51A4#2E51A4

#2E51A4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.140 H 264.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#2E51A4
RGBrgb(46, 81, 164)
HSLhsl(222, 56%, 41%)
HSVhsv(222, 72%, 64%)
CMYKcmyk(72%, 50.6%, 0%, 35.7%)
CIE-LABlab(36.26, 16.67, -48.59)
CIE-LCHlch(36.26, 51.37, 288.93°)
OKLaboklab(45.64% -0.0138 -0.1395)
OKLCHoklch(45.64% 0.14 264.3)
XYZxyz(10.7676, 9.1449, 36.3124)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51A4 #A4812E
analogous
#2E8CA4 #2E51A4 #462EA4
triadic
#2E51A4 #A42E51 #51A42E
tetradic
#2E51A4 #A42E8C #A4812E #2EA446
square
#2E51A4 #A42E8C #A4812E #2EA446
split-complementary
#2E51A4 #A4462E #8CA42E
monochromatic
#132244 #213974 #2E51A4 #456CCB #7492D8

Accessibility & contrast

On white

7.42
#2E51A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2E51A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51A4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51A4#FFFFFF#000000##FFFFFF
##2E51A41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e51a4;
/* rgb */ color: rgb(46, 81, 164);
/* oklch */ color: oklch(45.6% 0.140 264.3);
Tailwind
colors: {
  custom: {
    50: '#7681bf',
    500: '#2e51a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e51a4;
$custom-light: #7681bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51a4",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 222.203,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45636,
    "c": 0.14022,
    "h": 264.3
  },
  "luminance": 0.09146
}

Semantic roles & 50–950 ramp

primary
#2E51A4
secondary
#C0A86E
accent
#B348DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E51A4

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

Preview Lab → · Contrast checker → · Palette generator →

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