#2E54B6#2E54B6

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

Color values

HEX#2E54B6
RGBrgb(46, 84, 182)
HSLhsl(223, 60%, 45%)
HSVhsv(223, 75%, 71%)
CMYKcmyk(74.7%, 53.8%, 0%, 28.6%)
CIE-LABlab(38.37, 21.51, -55.85)
CIE-LCHlch(38.37, 59.85, 291.06°)
OKLaboklab(47.64% -0.0144 -0.1609)
OKLCHoklch(47.64% 0.162 264.9)
XYZxyz(12.7376, 10.2975, 45.5632)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54B6 #B6902E
analogous
#2E98B6 #2E54B6 #4C2EB6
triadic
#2E54B6 #B62E54 #54B62E
tetradic
#2E54B6 #B62E98 #B6902E #2EB64C
square
#2E54B6 #B62E98 #B6902E #2EB64C
split-complementary
#2E54B6 #B64C2E #98B62E
monochromatic
#152754 #223D85 #2E54B6 #4F74D2 #809ADF

Accessibility & contrast

On white

6.86
#2E54B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2E54B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E54B6
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54B6#FFFFFF#000000##FFFFFF
##2E54B61.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0561B9
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e54b6;
/* rgb */ color: rgb(46, 84, 182);
/* oklch */ color: oklch(47.6% 0.162 264.9);
Tailwind
colors: {
  custom: {
    50: '#7a83cd',
    500: '#2e54b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e54b6;
$custom-light: #7a83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54b6",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 182
  },
  "hsl": {
    "h": 223.235,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47643,
    "c": 0.16151,
    "h": 264.9
  },
  "luminance": 0.10299
}

Semantic roles & 50–950 ramp

primary
#2E54B6
secondary
#C8B178
accent
#B745E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2E54B6

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

Preview Lab → · Contrast checker → · Palette generator →

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