#2E52A8#2E52A8

#2E52A8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.145 H 264.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2E52A8
RGBrgb(46, 82, 168)
HSLhsl(222, 57%, 42%)
HSVhsv(222, 73%, 66%)
CMYKcmyk(72.6%, 51.2%, 0%, 34.1%)
CIE-LABlab(36.82, 17.52, -50.07)
CIE-LCHlch(36.82, 53.05, 289.29°)
OKLaboklab(46.15% -0.0142 -0.1439)
OKLCHoklch(46.15% 0.145 264.4)
XYZxyz(11.2094, 9.4414, 38.2698)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A8 #A8842E
analogous
#2E8FA8 #2E52A8 #472EA8
triadic
#2E52A8 #A82E52 #52A82E
tetradic
#2E52A8 #A82E8F #A8842E #2EA847
square
#2E52A8 #A82E8F #A8842E #2EA847
split-complementary
#2E52A8 #A8472E #8FA82E
monochromatic
#142348 #213B78 #2E52A8 #476ECD #7794DA

Accessibility & contrast

On white

7.27
#2E52A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2E52A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A8#FFFFFF#000000##FFFFFF
##2E52A81.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e52a8;
/* rgb */ color: rgb(46, 82, 168);
/* oklch */ color: oklch(46.2% 0.145 264.4);
Tailwind
colors: {
  custom: {
    50: '#7782c2',
    500: '#2e52a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a8;
$custom-light: #7782c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a8",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 168
  },
  "hsl": {
    "h": 222.295,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.1446,
    "h": 264.4
  },
  "luminance": 0.09443
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E52A8

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

Preview Lab → · Contrast checker → · Palette generator →

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