#2E52B3#2E52B3

#2E52B3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.160 H 265.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2E52B3
RGBrgb(46, 82, 179)
HSLhsl(224, 59%, 44%)
HSVhsv(224, 74%, 70%)
CMYKcmyk(74.3%, 54.2%, 0%, 29.8%)
CIE-LABlab(37.61, 21.69, -55.32)
CIE-LCHlch(37.61, 59.43, 291.41°)
OKLaboklab(47% -0.0131 -0.1593)
OKLCHoklch(47% 0.16 265.3)
XYZxyz(12.2778, 9.8688, 43.8969)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52B3 #B38F2E
analogous
#2E95B3 #2E52B3 #4C2EB3
triadic
#2E52B3 #B32E52 #52B32E
tetradic
#2E52B3 #B32E95 #B38F2E #2EB34C
square
#2E52B3 #B32E95 #B38F2E #2EB34C
split-complementary
#2E52B3 #B34C2E #95B32E
monochromatic
#152552 #213C82 #2E52B3 #4D71D1 #7E98DE

Accessibility & contrast

On white

7.06
#2E52B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E52B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52B3
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52B3#FFFFFF#000000##FFFFFF
##2E52B31.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025FB6
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e52b3;
/* rgb */ color: rgb(46, 82, 179);
/* oklch */ color: oklch(47.0% 0.160 265.3);
Tailwind
colors: {
  custom: {
    50: '#7982ca',
    500: '#2e52b3',
    950: '#000000',
  },
}
SCSS
$custom: #2e52b3;
$custom-light: #7982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52b3",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 223.759,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46995,
    "c": 0.15988,
    "h": 265.3
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#2E52B3
secondary
#C6B176
accent
#B846E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E52B3

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

Preview Lab → · Contrast checker → · Palette generator →

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