#2E52C4#2E52C4

#2E52C4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.183 H 266.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2E52C4
RGBrgb(46, 82, 196)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 77%, 77%)
CMYKcmyk(76.5%, 58.2%, 0%, 23.1%)
CIE-LABlab(38.90, 28.09, -63.19)
CIE-LCHlch(38.90, 69.15, 293.97°)
OKLaboklab(48.37% -0.0121 -0.1824)
OKLCHoklch(48.37% 0.183 266.2)
XYZxyz(14.1043, 10.5994, 53.5164)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52C4 #C4A02E
analogous
#2E9DC4 #2E52C4 #552EC4
triadic
#2E52C4 #C42E52 #52C42E
tetradic
#2E52C4 #C42E9D #C4A02E #2EC455
square
#2E52C4 #C42E9D #C4A02E #2EC455
split-complementary
#2E52C4 #C4552E #9DC42E
monochromatic
#172961 #223D92 #2E52C4 #5876D8 #899FE3

Accessibility & contrast

On white

6.73
#2E52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2E52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52C4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52C4#FFFFFF#000000##FFFFFF
##2E52C41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2e52c4;
/* rgb */ color: rgb(46, 82, 196);
/* oklch */ color: oklch(48.4% 0.183 266.2);
Tailwind
colors: {
  custom: {
    50: '#7d82d7',
    500: '#2e52c4',
    950: '#000000',
  },
}
SCSS
$custom: #2e52c4;
$custom-light: #7d82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52c4",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 225.6,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48372,
    "c": 0.18285,
    "h": 266.2
  },
  "luminance": 0.10601
}

Semantic roles & 50–950 ramp

primary
#2E52C4
secondary
#CDBB81
accent
#BE43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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