#2E52A0#2E52A0

#2E52A0 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.133 H 263.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#2E52A0
RGBrgb(46, 82, 160)
HSLhsl(221, 55%, 40%)
HSVhsv(221, 71%, 63%)
CMYKcmyk(71.2%, 48.8%, 0%, 37.3%)
CIE-LABlab(36.28, 14.49, -46.17)
CIE-LCHlch(36.28, 48.39, 287.42°)
OKLaboklab(45.56% -0.0153 -0.1324)
OKLCHoklch(45.56% 0.133 263.4)
XYZxyz(10.4869, 9.1524, 34.4648)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A0 #A07C2E
analogous
#2E8BA0 #2E52A0 #432EA0
triadic
#2E52A0 #A02E52 #52A02E
tetradic
#2E52A0 #A02E8B #A07C2E #2EA043
square
#2E52A0 #A02E8B #A07C2E #2EA043
split-complementary
#2E52A0 #A0432E #8BA02E
monochromatic
#132141 #203A70 #2E52A0 #426DC9 #7292D6

Accessibility & contrast

On white

7.42
#2E52A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2E52A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A0
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A0#FFFFFF#000000##FFFFFF
##2E52A01.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285BA3
Deuteranopia (green-blind)
#08509E
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e52a0;
/* rgb */ color: rgb(46, 82, 160);
/* oklch */ color: oklch(45.6% 0.133 263.4);
Tailwind
colors: {
  custom: {
    50: '#7582bd',
    500: '#2e52a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a0;
$custom-light: #7582bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a0",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 160
  },
  "hsl": {
    "h": 221.053,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4556,
    "c": 0.13329,
    "h": 263.4
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#2E52A0
secondary
#BEA46C
accent
#AF49DF
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E52A0

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

Preview Lab → · Contrast checker → · Palette generator →

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