#2E52A6#2E52A6

#2E52A6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.142 H 264.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2E52A6
RGBrgb(46, 82, 166)
HSLhsl(222, 57%, 42%)
HSVhsv(222, 72%, 65%)
CMYKcmyk(72.3%, 50.6%, 0%, 34.9%)
CIE-LABlab(36.68, 16.76, -49.11)
CIE-LCHlch(36.68, 51.89, 288.85°)
OKLaboklab(46% -0.0145 -0.141)
OKLCHoklch(46% 0.142 264.1)
XYZxyz(11.0245, 9.3674, 37.2961)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A6 #A6822E
analogous
#2E8EA6 #2E52A6 #462EA6
triadic
#2E52A6 #A62E52 #52A62E
tetradic
#2E52A6 #A62E8E #A6822E #2EA646
square
#2E52A6 #A62E8E #A6822E #2EA646
split-complementary
#2E52A6 #A6462E #8EA62E
monochromatic
#132346 #213A76 #2E52A6 #466ECC #7693D9

Accessibility & contrast

On white

7.31
#2E52A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2E52A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A6
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A6#FFFFFF#000000##FFFFFF
##2E52A61.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e52a6;
/* rgb */ color: rgb(46, 82, 166);
/* oklch */ color: oklch(46.0% 0.142 264.1);
Tailwind
colors: {
  custom: {
    50: '#7682c1',
    500: '#2e52a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a6;
$custom-light: #7682c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a6",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 222,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46,
    "c": 0.14179,
    "h": 264.1
  },
  "luminance": 0.09369
}

Semantic roles & 50–950 ramp

primary
#2E52A6
secondary
#C1A86F
accent
#B248E0
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E52A6

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

Preview Lab → · Contrast checker → · Palette generator →

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