#2E52B8#2E52B8

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

Color values

HEX#2E52B8
RGBrgb(46, 82, 184)
HSLhsl(224, 60%, 45%)
HSVhsv(224, 75%, 72%)
CMYKcmyk(75%, 55.4%, 0%, 27.8%)
CIE-LABlab(37.98, 23.58, -57.67)
CIE-LCHlch(37.98, 62.30, 292.24°)
OKLaboklab(47.39% -0.0127 -0.1662)
OKLCHoklch(47.39% 0.167 265.6)
XYZxyz(12.7927, 10.0747, 46.6085)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52B8 #B8942E
analogous
#2E97B8 #2E52B8 #4F2EB8
triadic
#2E52B8 #B82E52 #52B82E
tetradic
#2E52B8 #B82E97 #B8942E #2EB84F
square
#2E52B8 #B82E97 #B8942E #2EB84F
split-complementary
#2E52B8 #B84F2E #97B82E
monochromatic
#162656 #223C87 #2E52B8 #5072D3 #819ADF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E52B8#FFFFFF#000000##FFFFFF
##2E52B81.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)
#0060BC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e52b8;
/* rgb */ color: rgb(46, 82, 184);
/* oklch */ color: oklch(47.4% 0.167 265.6);
Tailwind
colors: {
  custom: {
    50: '#7a82ce',
    500: '#2e52b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e52b8;
$custom-light: #7a82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52b8",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 184
  },
  "hsl": {
    "h": 224.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47391,
    "c": 0.16673,
    "h": 265.6
  },
  "luminance": 0.10076
}

Semantic roles & 50–950 ramp

primary
#2E52B8
secondary
#C8B479
accent
#BA45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E52B8

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

Preview Lab → · Contrast checker → · Palette generator →

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