#2E54B7#2E54B7

#2E54B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.163 H 264.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2E54B7
RGBrgb(46, 84, 183)
HSLhsl(223, 60%, 45%)
HSVhsv(223, 75%, 72%)
CMYKcmyk(74.9%, 54.1%, 0%, 28.2%)
CIE-LABlab(38.44, 21.89, -56.32)
CIE-LCHlch(38.44, 60.42, 291.24°)
OKLaboklab(47.72% -0.0144 -0.1622)
OKLCHoklch(47.72% 0.163 264.9)
XYZxyz(12.8413, 10.3390, 46.1094)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54B7 #B7912E
analogous
#2E98B7 #2E54B7 #4D2EB7
triadic
#2E54B7 #B72E54 #54B72E
tetradic
#2E54B7 #B72E98 #B7912E #2EB74D
square
#2E54B7 #B72E98 #B7912E #2EB74D
split-complementary
#2E54B7 #B74D2E #98B72E
monochromatic
#152755 #223E86 #2E54B7 #4F74D3 #809BDF

Accessibility & contrast

On white

6.84
#2E54B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2E54B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E54B7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54B7#FFFFFF#000000##FFFFFF
##2E54B71.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0261BA
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e54b7;
/* rgb */ color: rgb(46, 84, 183);
/* oklch */ color: oklch(47.7% 0.163 264.9);
Tailwind
colors: {
  custom: {
    50: '#7a83cd',
    500: '#2e54b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e54b7;
$custom-light: #7a83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54b7",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 183
  },
  "hsl": {
    "h": 223.358,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47721,
    "c": 0.16287,
    "h": 264.9
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#2E54B7
secondary
#C8B279
accent
#B745E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E54B7

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

Preview Lab → · Contrast checker → · Palette generator →

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