#2E52B2#2E52B2

#2E52B2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.159 H 265.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2E52B2
RGBrgb(46, 82, 178)
HSLhsl(224, 59%, 44%)
HSVhsv(224, 74%, 70%)
CMYKcmyk(74.2%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.53, 21.32, -54.85)
CIE-LCHlch(37.53, 58.85, 291.24°)
OKLaboklab(46.92% -0.0132 -0.158)
OKLCHoklch(46.92% 0.159 265.2)
XYZxyz(12.1771, 9.8285, 43.3662)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52B2 #B28E2E
analogous
#2E94B2 #2E52B2 #4C2EB2
triadic
#2E52B2 #B22E52 #52B22E
tetradic
#2E52B2 #B22E94 #B28E2E #2EB24C
square
#2E52B2 #B22E94 #B28E2E #2EB24C
split-complementary
#2E52B2 #B24C2E #94B22E
monochromatic
#152551 #213C81 #2E52B2 #4C70D1 #7D97DD

Accessibility & contrast

On white

7.08
#2E52B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E52B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52B2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52B2#FFFFFF#000000##FFFFFF
##2E52B21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e52b2;
/* rgb */ color: rgb(46, 82, 178);
/* oklch */ color: oklch(46.9% 0.159 265.2);
Tailwind
colors: {
  custom: {
    50: '#7982ca',
    500: '#2e52b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e52b2;
$custom-light: #7982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52b2",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 223.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46916,
    "c": 0.15851,
    "h": 265.2
  },
  "luminance": 0.0983
}

Semantic roles & 50–950 ramp

primary
#2E52B2
secondary
#C6B076
accent
#B746E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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