#2E52A4#2E52A4

#2E52A4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.139 H 263.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2E52A4
RGBrgb(46, 82, 164)
HSLhsl(222, 56%, 41%)
HSVhsv(222, 72%, 64%)
CMYKcmyk(72%, 50%, 0%, 35.7%)
CIE-LABlab(36.55, 16.00, -48.13)
CIE-LCHlch(36.55, 50.72, 288.39°)
OKLaboklab(45.85% -0.0147 -0.1382)
OKLCHoklch(45.85% 0.139 263.9)
XYZxyz(10.8425, 9.2946, 36.3374)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A4 #A4802E
analogous
#2E8DA4 #2E52A4 #452EA4
triadic
#2E52A4 #A42E52 #52A42E
tetradic
#2E52A4 #A42E8D #A4802E #2EA445
square
#2E52A4 #A42E8D #A4802E #2EA445
split-complementary
#2E52A4 #A4452E #8DA42E
monochromatic
#132244 #213A74 #2E52A4 #456DCB #7493D8

Accessibility & contrast

On white

7.34
#2E52A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2E52A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A4#FFFFFF#000000##FFFFFF
##2E52A41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e52a4;
/* rgb */ color: rgb(46, 82, 164);
/* oklch */ color: oklch(45.9% 0.139 263.9);
Tailwind
colors: {
  custom: {
    50: '#7682bf',
    500: '#2e52a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a4;
$custom-light: #7682bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a4",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 221.695,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.13896,
    "h": 263.9
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#2E52A4
secondary
#C0A76E
accent
#B148DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E52A4

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

Preview Lab → · Contrast checker → · Palette generator →

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