#2E56BA#2E56BA

#2E56BA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.4% C 0.164 H 264.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#2E56BA
RGBrgb(46, 86, 186)
HSLhsl(223, 60%, 45%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(75.3%, 53.8%, 0%, 27.1%)
CIE-LABlab(39.21, 21.71, -56.84)
CIE-LCHlch(39.21, 60.85, 290.90°)
OKLaboklab(48.37% -0.0156 -0.1637)
OKLCHoklch(48.37% 0.164 264.5)
XYZxyz(13.3143, 10.7801, 47.8239)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E56BA #BA922E
analogous
#2E9CBA #2E56BA #4C2EBA
triadic
#2E56BA #BA2E56 #56BA2E
tetradic
#2E56BA #BA2E9C #BA922E #2EBA4C
square
#2E56BA #BA2E9C #BA922E #2EBA4C
split-complementary
#2E56BA #BA4C2E #9CBA2E
monochromatic
#162958 #223F89 #2E56BA #5177D4 #829DE0

Accessibility & contrast

On white

6.65
#2E56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2E56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E56BA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E56BA#FFFFFF#000000##FFFFFF
##2E56BA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0563BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2e56ba;
/* rgb */ color: rgb(46, 86, 186);
/* oklch */ color: oklch(48.4% 0.164 264.5);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#2e56ba',
    950: '#000000',
  },
}
SCSS
$custom: #2e56ba;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e56ba",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 222.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48368,
    "c": 0.16449,
    "h": 264.5
  },
  "luminance": 0.10782
}

Semantic roles & 50–950 ramp

primary
#2E56BA
secondary
#C9B37B
accent
#B644E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2E56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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