#2E56A2#2E56A2

#2E56A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.6% C 0.131 H 261.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2E56A2
RGBrgb(46, 86, 162)
HSLhsl(219, 56%, 41%)
HSVhsv(219, 72%, 64%)
CMYKcmyk(71.6%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.56, 12.60, -45.30)
CIE-LCHlch(37.56, 47.02, 285.55°)
OKLaboklab(46.59% -0.0187 -0.1298)
OKLCHoklch(46.59% 0.131 261.8)
XYZxyz(10.9738, 9.8439, 35.4971)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E56A2 #A27A2E
analogous
#2E90A2 #2E56A2 #402EA2
triadic
#2E56A2 #A22E56 #56A22E
tetradic
#2E56A2 #A22E90 #A27A2E #2EA240
square
#2E56A2 #A22E90 #A27A2E #2EA240
split-complementary
#2E56A2 #A2402E #90A22E
monochromatic
#132343 #203D72 #2E56A2 #4372CA #7396D7

Accessibility & contrast

On white

7.07
#2E56A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E56A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E56A2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E56A2#FFFFFF#000000##FFFFFF
##2E56A21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#1653A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e56a2;
/* rgb */ color: rgb(46, 86, 162);
/* oklch */ color: oklch(46.6% 0.131 261.8);
Tailwind
colors: {
  custom: {
    50: '#7585be',
    500: '#2e56a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e56a2;
$custom-light: #7585be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e56a2",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 219.31,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.13113,
    "h": 261.8
  },
  "luminance": 0.09845
}

Semantic roles & 50–950 ramp

primary
#2E56A2
secondary
#BFA36D
accent
#AB49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E56A2

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

Preview Lab → · Contrast checker → · Palette generator →

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