#2E52C0#2E52C0

#2E52C0 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.178 H 266.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2E52C0
RGBrgb(46, 82, 192)
HSLhsl(225, 61%, 47%)
HSVhsv(225, 76%, 75%)
CMYKcmyk(76%, 57.3%, 0%, 24.7%)
CIE-LABlab(38.59, 26.59, -61.36)
CIE-LCHlch(38.59, 66.88, 293.43°)
OKLaboklab(48.04% -0.0123 -0.1771)
OKLCHoklch(48.04% 0.178 266)
XYZxyz(13.6551, 10.4197, 51.1505)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52C0 #C09C2E
analogous
#2E9BC0 #2E52C0 #532EC0
triadic
#2E52C0 #C02E52 #52C02E
tetradic
#2E52C0 #C02E9B #C09C2E #2EC053
square
#2E52C0 #C02E9B #C09C2E #2EC053
split-complementary
#2E52C0 #C0532E #9BC02E
monochromatic
#16285D #223D8F #2E52C0 #5575D6 #869DE2

Accessibility & contrast

On white

6.81
#2E52C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2E52C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52C0
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52C0#FFFFFF#000000##FFFFFF
##2E52C01.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e52c0;
/* rgb */ color: rgb(46, 82, 192);
/* oklch */ color: oklch(48.0% 0.178 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c82d4',
    500: '#2e52c0',
    950: '#000000',
  },
}
SCSS
$custom: #2e52c0;
$custom-light: #7c82d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52c0",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 192
  },
  "hsl": {
    "h": 225.205,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.17753,
    "h": 266
  },
  "luminance": 0.10421
}

Semantic roles & 50–950 ramp

primary
#2E52C0
secondary
#CCB97E
accent
#BD43E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E52C0

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

Preview Lab → · Contrast checker → · Palette generator →

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