#2E51BC#2E51BC

#2E51BC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.173 H 266.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2E51BC
RGBrgb(46, 81, 188)
HSLhsl(225, 61%, 46%)
HSVhsv(225, 76%, 74%)
CMYKcmyk(75.5%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.01, 25.74, -59.95)
CIE-LCHlch(38.01, 65.25, 293.24°)
OKLaboklab(47.51% -0.0118 -0.173)
OKLCHoklch(47.51% 0.173 266.1)
XYZxyz(13.1431, 10.0951, 48.8231)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51BC #BC992E
analogous
#2E98BC #2E51BC #522EBC
triadic
#2E51BC #BC2E51 #51BC2E
tetradic
#2E51BC #BC2E98 #BC992E #2EBC52
square
#2E51BC #BC2E98 #BC992E #2EBC52
split-complementary
#2E51BC #BC522E #98BC2E
monochromatic
#16275A #223C8B #2E51BC #5273D5 #849BE1

Accessibility & contrast

On white

6.96
#2E51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2E51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51BC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51BC#FFFFFF#000000##FFFFFF
##2E51BC1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e51bc;
/* rgb */ color: rgb(46, 81, 188);
/* oklch */ color: oklch(47.5% 0.173 266.1);
Tailwind
colors: {
  custom: {
    50: '#7b81d1',
    500: '#2e51bc',
    950: '#000000',
  },
}
SCSS
$custom: #2e51bc;
$custom-light: #7b81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51bc",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 225.211,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47514,
    "c": 0.17338,
    "h": 266.1
  },
  "luminance": 0.10097
}

Semantic roles & 50–950 ramp

primary
#2E51BC
secondary
#CAB77C
accent
#BC44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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