#2E52BA#2E52BA

#2E52BA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.169 H 265.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2E52BA
RGBrgb(46, 82, 186)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(75.3%, 55.9%, 0%, 27.1%)
CIE-LABlab(38.13, 24.34, -58.60)
CIE-LCHlch(38.13, 63.45, 292.55°)
OKLaboklab(47.55% -0.0126 -0.169)
OKLCHoklch(47.55% 0.169 265.7)
XYZxyz(13.0038, 10.1592, 47.7204)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52BA #BA962E
analogous
#2E98BA #2E52BA #502EBA
triadic
#2E52BA #BA2E52 #52BA2E
tetradic
#2E52BA #BA2E98 #BA962E #2EBA50
square
#2E52BA #BA2E98 #BA962E #2EBA50
split-complementary
#2E52BA #BA502E #98BA2E
monochromatic
#162758 #223C89 #2E52BA #5173D4 #829AE0

Accessibility & contrast

On white

6.93
#2E52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2E52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52BA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52BA#FFFFFF#000000##FFFFFF
##2E52BA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e52ba;
/* rgb */ color: rgb(46, 82, 186);
/* oklch */ color: oklch(47.6% 0.169 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b82cf',
    500: '#2e52ba',
    950: '#000000',
  },
}
SCSS
$custom: #2e52ba;
$custom-light: #7b82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52ba",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 224.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.16944,
    "h": 265.7
  },
  "luminance": 0.10161
}

Semantic roles & 50–950 ramp

primary
#2E52BA
secondary
#C9B57B
accent
#BB44E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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