#2E56B7#2E56B7

#2E56B7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.160 H 264.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2E56B7
RGBrgb(46, 86, 183)
HSLhsl(222, 60%, 45%)
HSVhsv(222, 75%, 72%)
CMYKcmyk(74.9%, 53%, 0%, 28.2%)
CIE-LABlab(38.99, 20.58, -55.43)
CIE-LCHlch(38.99, 59.13, 290.36°)
OKLaboklab(48.14% -0.0159 -0.1596)
OKLCHoklch(48.14% 0.16 264.3)
XYZxyz(12.9987, 10.6539, 46.1619)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E56B7 #B78F2E
analogous
#2E9AB7 #2E56B7 #4B2EB7
triadic
#2E56B7 #B72E56 #56B72E
tetradic
#2E56B7 #B72E9A #B78F2E #2EB74B
square
#2E56B7 #B72E9A #B78F2E #2EB74B
split-complementary
#2E56B7 #B74B2E #9AB72E
monochromatic
#152855 #223F86 #2E56B7 #4F76D3 #809CDF

Accessibility & contrast

On white

6.71
#2E56B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2E56B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E56B7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E56B7#FFFFFF#000000##FFFFFF
##2E56B71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1062BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2e56b7;
/* rgb */ color: rgb(46, 86, 183);
/* oklch */ color: oklch(48.1% 0.160 264.3);
Tailwind
colors: {
  custom: {
    50: '#7a85cd',
    500: '#2e56b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e56b7;
$custom-light: #7a85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e56b7",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 222.482,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48136,
    "c": 0.16039,
    "h": 264.3
  },
  "luminance": 0.10655
}

Semantic roles & 50–950 ramp

primary
#2E56B7
secondary
#C8B179
accent
#B545E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2E56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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