#2E4EC4#2E4EC4

#2E4EC4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.188 H 267.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2E4EC4
RGBrgb(46, 78, 196)
HSLhsl(227, 62%, 47%)
HSVhsv(227, 77%, 77%)
CMYKcmyk(76.5%, 60.2%, 0%, 23.1%)
CIE-LABlab(37.87, 30.68, -64.87)
CIE-LCHlch(37.87, 71.76, 295.31°)
OKLaboklab(47.6% -0.0095 -0.1874)
OKLCHoklch(47.6% 0.188 267.1)
XYZxyz(13.8114, 10.0136, 53.4188)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4EC4 #C4A42E
analogous
#2E99C4 #2E4EC4 #592EC4
triadic
#2E4EC4 #C42E4E #4EC42E
tetradic
#2E4EC4 #C42E99 #C4A42E #2EC459
square
#2E4EC4 #C42E99 #C4A42E #2EC459
split-complementary
#2E4EC4 #C4592E #99C42E
monochromatic
#172761 #223A92 #2E4EC4 #5873D8 #899CE3

Accessibility & contrast

On white

6.99
#2E4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2E4EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E4EC4
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4EC4#FFFFFF#000000##FFFFFF
##2E4EC41.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0052C2
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e4ec4;
/* rgb */ color: rgb(46, 78, 196);
/* oklch */ color: oklch(47.6% 0.188 267.1);
Tailwind
colors: {
  custom: {
    50: '#7e7fd7',
    500: '#2e4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #2e4ec4;
$custom-light: #7e7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4ec4",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 227.2,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47603,
    "c": 0.18768,
    "h": 267.1
  },
  "luminance": 0.10015
}

Semantic roles & 50–950 ramp

primary
#2E4EC4
secondary
#CDBD81
accent
#C243E5
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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