#2E54BA#2E54BA

#2E54BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.0% C 0.167 H 265.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2E54BA
RGBrgb(46, 84, 186)
HSLhsl(224, 60%, 45%)
HSVhsv(224, 75%, 73%)
CMYKcmyk(75.3%, 54.8%, 0%, 27.1%)
CIE-LABlab(38.66, 23.02, -57.72)
CIE-LCHlch(38.66, 62.15, 291.74°)
OKLaboklab(47.96% -0.0141 -0.1664)
OKLCHoklch(47.96% 0.167 265.1)
XYZxyz(13.1568, 10.4652, 47.7714)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54BA #BA942E
analogous
#2E9ABA #2E54BA #4E2EBA
triadic
#2E54BA #BA2E54 #54BA2E
tetradic
#2E54BA #BA2E9A #BA942E #2EBA4E
square
#2E54BA #BA2E9A #BA942E #2EBA4E
split-complementary
#2E54BA #BA4E2E #9ABA2E
monochromatic
#162858 #223E89 #2E54BA #5175D4 #829CE0

Accessibility & contrast

On white

6.79
#2E54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2E54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E54BA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54BA#FFFFFF#000000##FFFFFF
##2E54BA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e54ba;
/* rgb */ color: rgb(46, 84, 186);
/* oklch */ color: oklch(48.0% 0.167 265.1);
Tailwind
colors: {
  custom: {
    50: '#7b83cf',
    500: '#2e54ba',
    950: '#000000',
  },
}
SCSS
$custom: #2e54ba;
$custom-light: #7b83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54ba",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 223.714,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.16697,
    "h": 265.1
  },
  "luminance": 0.10467
}

Semantic roles & 50–950 ramp

primary
#2E54BA
secondary
#C9B47B
accent
#B844E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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