#2E51A9#2E51A9

#2E51A9 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.147 H 264.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2E51A9
RGBrgb(46, 81, 169)
HSLhsl(223, 57%, 42%)
HSVhsv(223, 73%, 66%)
CMYKcmyk(72.8%, 52.1%, 0%, 33.7%)
CIE-LABlab(36.61, 18.57, -51.01)
CIE-LCHlch(36.61, 54.28, 290.00°)
OKLaboklab(46.01% -0.0132 -0.1467)
OKLCHoklch(46.01% 0.147 264.8)
XYZxyz(11.2281, 9.3291, 38.7374)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51A9 #A9862E
analogous
#2E8EA9 #2E51A9 #492EA9
triadic
#2E51A9 #A92E51 #51A92E
tetradic
#2E51A9 #A92E8E #A9862E #2EA949
square
#2E51A9 #A92E8E #A9862E #2EA949
split-complementary
#2E51A9 #A9492E #8EA92E
monochromatic
#142349 #213A79 #2E51A9 #476DCD #7793DA

Accessibility & contrast

On white

7.33
#2E51A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2E51A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51A9
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51A9#FFFFFF#000000##FFFFFF
##2E51A91.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195CAC
Deuteranopia (green-blind)
#0051A7
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e51a9;
/* rgb */ color: rgb(46, 81, 169);
/* oklch */ color: oklch(46.0% 0.147 264.8);
Tailwind
colors: {
  custom: {
    50: '#7781c3',
    500: '#2e51a9',
    950: '#000000',
  },
}
SCSS
$custom: #2e51a9;
$custom-light: #7781c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51a9",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 169
  },
  "hsl": {
    "h": 222.927,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.14727,
    "h": 264.8
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

primary
#2E51A9
secondary
#C2AB71
accent
#B547E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E51A9

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

Preview Lab → · Contrast checker → · Palette generator →

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