#2E54B8#2E54B8

#2E54B8 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.164 H 265.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2E54B8
RGBrgb(46, 84, 184)
HSLhsl(223, 60%, 45%)
HSVhsv(223, 75%, 72%)
CMYKcmyk(75%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.52, 22.27, -56.79)
CIE-LCHlch(38.52, 61.00, 291.41°)
OKLaboklab(47.8% -0.0143 -0.1636)
OKLCHoklch(47.8% 0.164 265)
XYZxyz(12.9457, 10.3808, 46.6595)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54B8 #B8922E
analogous
#2E99B8 #2E54B8 #4D2EB8
triadic
#2E54B8 #B82E54 #54B82E
tetradic
#2E54B8 #B82E99 #B8922E #2EB84D
square
#2E54B8 #B82E99 #B8922E #2EB84D
split-complementary
#2E54B8 #B84D2E #99B82E
monochromatic
#162756 #223E87 #2E54B8 #5074D3 #819BDF

Accessibility & contrast

On white

6.83
#2E54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2E54B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E54B8
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54B8#FFFFFF#000000##FFFFFF
##2E54B81.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e54b8;
/* rgb */ color: rgb(46, 84, 184);
/* oklch */ color: oklch(47.8% 0.164 265.0);
Tailwind
colors: {
  custom: {
    50: '#7a83ce',
    500: '#2e54b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e54b8;
$custom-light: #7a83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54b8",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 223.478,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.478,
    "c": 0.16424,
    "h": 265
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#2E54B8
secondary
#C8B379
accent
#B845E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E54B8

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

Preview Lab → · Contrast checker → · Palette generator →

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