#2E56D4#2E56D4

#2E56D4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.199 H 265.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2E56D4
RGBrgb(46, 86, 212)
HSLhsl(226, 66%, 51%)
HSVhsv(226, 78%, 83%)
CMYKcmyk(78.3%, 59.4%, 0%, 16.9%)
CIE-LABlab(41.20, 31.45, -68.68)
CIE-LCHlch(41.20, 75.54, 294.60°)
OKLaboklab(50.49% -0.0143 -0.1985)
OKLCHoklch(50.49% 0.199 265.9)
XYZxyz(16.3340, 11.9880, 63.7276)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E56D4 #D4AC2E
analogous
#2EA9D4 #2E56D4 #592ED4
triadic
#2E56D4 #D42E56 #56D42E
tetradic
#2E56D4 #D42EA9 #D4AC2E #2ED459
square
#2E56D4 #D42EA9 #D4AC2E #2ED459
split-complementary
#2E56D4 #D4592E #A9D42E
monochromatic
#172D70 #2241A3 #2E56D4 #617FDE #94A8E9

Accessibility & contrast

On white

6.18
#2E56D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2E56D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E56D4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E56D4#FFFFFF#000000##FFFFFF
##2E56D41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#00768D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2e56d4;
/* rgb */ color: rgb(46, 86, 212);
/* oklch */ color: oklch(50.5% 0.199 265.9);
Tailwind
colors: {
  custom: {
    50: '#8185e2',
    500: '#2e56d4',
    950: '#000000',
  },
}
SCSS
$custom: #2e56d4;
$custom-light: #8185e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e56d4",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 212
  },
  "hsl": {
    "h": 225.542,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50487,
    "c": 0.19903,
    "h": 265.9
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#2E56D4
secondary
#D4C28A
accent
#C03FE9
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #2E56D4

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

Preview Lab → · Contrast checker → · Palette generator →

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