#2E52BC#2E52BC

#2E52BC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.172 H 265.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2E52BC
RGBrgb(46, 82, 188)
HSLhsl(225, 61%, 46%)
HSVhsv(225, 76%, 74%)
CMYKcmyk(75.5%, 56.4%, 0%, 26.3%)
CIE-LABlab(38.28, 25.09, -59.52)
CIE-LCHlch(38.28, 64.59, 292.86°)
OKLaboklab(47.71% -0.0125 -0.1717)
OKLCHoklch(47.71% 0.172 265.8)
XYZxyz(13.2179, 10.2448, 48.8480)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52BC #BC982E
analogous
#2E99BC #2E52BC #512EBC
triadic
#2E52BC #BC2E52 #52BC2E
tetradic
#2E52BC #BC2E99 #BC982E #2EBC51
square
#2E52BC #BC2E99 #BC982E #2EBC51
split-complementary
#2E52BC #BC512E #99BC2E
monochromatic
#16275A #223D8B #2E52BC #5273D5 #849BE1

Accessibility & contrast

On white

6.89
#2E52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2E52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E52BC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52BC#FFFFFF#000000##FFFFFF
##2E52BC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e52bc;
/* rgb */ color: rgb(46, 82, 188);
/* oklch */ color: oklch(47.7% 0.172 265.8);
Tailwind
colors: {
  custom: {
    50: '#7b82d1',
    500: '#2e52bc',
    950: '#000000',
  },
}
SCSS
$custom: #2e52bc;
$custom-light: #7b82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52bc",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 224.789,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47714,
    "c": 0.17214,
    "h": 265.8
  },
  "luminance": 0.10246
}

Semantic roles & 50–950 ramp

primary
#2E52BC
secondary
#CAB67C
accent
#BB44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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