#2E52B7#2E52B7

#2E52B7 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.165 H 265.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2E52B7
RGBrgb(46, 82, 183)
HSLhsl(224, 60%, 45%)
HSVhsv(224, 75%, 72%)
CMYKcmyk(74.9%, 55.2%, 0%, 28.2%)
CIE-LABlab(37.90, 23.21, -57.20)
CIE-LCHlch(37.90, 61.73, 292.08°)
OKLaboklab(47.31% -0.0128 -0.1649)
OKLCHoklch(47.31% 0.165 265.6)
XYZxyz(12.6882, 10.0329, 46.0584)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52B7 #B7932E
analogous
#2E96B7 #2E52B7 #4F2EB7
triadic
#2E52B7 #B72E52 #52B72E
tetradic
#2E52B7 #B72E96 #B7932E #2EB74F
square
#2E52B7 #B72E96 #B7932E #2EB74F
split-complementary
#2E52B7 #B74F2E #96B72E
monochromatic
#152655 #223C86 #2E52B7 #4F72D3 #8099DF

Accessibility & contrast

On white

6.98
#2E52B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2E52B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52B7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52B7#FFFFFF#000000##FFFFFF
##2E52B71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e52b7;
/* rgb */ color: rgb(46, 82, 183);
/* oklch */ color: oklch(47.3% 0.165 265.6);
Tailwind
colors: {
  custom: {
    50: '#7a82cd',
    500: '#2e52b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e52b7;
$custom-light: #7a82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52b7",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 224.234,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47311,
    "c": 0.16536,
    "h": 265.6
  },
  "luminance": 0.10034
}

Semantic roles & 50–950 ramp

primary
#2E52B7
secondary
#C8B379
accent
#B945E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E52B7

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

Preview Lab → · Contrast checker → · Palette generator →

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