#2E52A7#2E52A7

#2E52A7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.143 H 264.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2E52A7
RGBrgb(46, 82, 167)
HSLhsl(222, 57%, 42%)
HSVhsv(222, 72%, 65%)
CMYKcmyk(72.5%, 50.9%, 0%, 34.5%)
CIE-LABlab(36.75, 17.14, -49.59)
CIE-LCHlch(36.75, 52.47, 289.07°)
OKLaboklab(46.08% -0.0143 -0.1425)
OKLCHoklch(46.08% 0.143 264.3)
XYZxyz(11.1166, 9.4043, 37.7811)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A7 #A7832E
analogous
#2E8FA7 #2E52A7 #472EA7
triadic
#2E52A7 #A72E52 #52A72E
tetradic
#2E52A7 #A72E8F #A7832E #2EA747
square
#2E52A7 #A72E8F #A7832E #2EA747
split-complementary
#2E52A7 #A7472E #8FA72E
monochromatic
#142347 #213A77 #2E52A7 #466ECC #7694D9

Accessibility & contrast

On white

7.29
#2E52A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2E52A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A7#FFFFFF#000000##FFFFFF
##2E52A71.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5CAA
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e52a7;
/* rgb */ color: rgb(46, 82, 167);
/* oklch */ color: oklch(46.1% 0.143 264.3);
Tailwind
colors: {
  custom: {
    50: '#7782c2',
    500: '#2e52a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a7;
$custom-light: #7782c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a7",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 167
  },
  "hsl": {
    "h": 222.149,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46075,
    "c": 0.14319,
    "h": 264.3
  },
  "luminance": 0.09405
}

Semantic roles & 50–950 ramp

primary
#2E52A7
secondary
#C1A970
accent
#B348E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E52A7

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

Preview Lab → · Contrast checker → · Palette generator →

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