#2E52C2#2E52C2

#2E52C2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.180 H 266.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2E52C2
RGBrgb(46, 82, 194)
HSLhsl(225, 62%, 47%)
HSVhsv(225, 76%, 76%)
CMYKcmyk(76.3%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.74, 27.34, -62.28)
CIE-LCHlch(38.74, 68.01, 293.70°)
OKLaboklab(48.21% -0.0122 -0.1798)
OKLCHoklch(48.21% 0.18 266.1)
XYZxyz(13.8782, 10.5089, 52.3255)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52C2 #C29E2E
analogous
#2E9CC2 #2E52C2 #542EC2
triadic
#2E52C2 #C22E52 #52C22E
tetradic
#2E52C2 #C22E9C #C29E2E #2EC254
square
#2E52C2 #C22E9C #C29E2E #2EC254
split-complementary
#2E52C2 #C2542E #9CC22E
monochromatic
#17285F #223D91 #2E52C2 #5676D7 #889EE3

Accessibility & contrast

On white

6.77
#2E52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2E52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52C2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52C2#FFFFFF#000000##FFFFFF
##2E52C21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e52c2;
/* rgb */ color: rgb(46, 82, 194);
/* oklch */ color: oklch(48.2% 0.180 266.1);
Tailwind
colors: {
  custom: {
    50: '#7d82d5',
    500: '#2e52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2e52c2;
$custom-light: #7d82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52c2",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 225.405,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48206,
    "c": 0.18019,
    "h": 266.1
  },
  "luminance": 0.1051
}

Semantic roles & 50–950 ramp

primary
#2E52C2
secondary
#CCBA7F
accent
#BD43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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