#2E5AC7#2E5AC7

#2E5AC7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.2% C 0.177 H 264.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2E5AC7
RGBrgb(46, 90, 199)
HSLhsl(223, 62%, 48%)
HSVhsv(223, 77%, 78%)
CMYKcmyk(76.9%, 54.8%, 0%, 22%)
CIE-LABlab(41.24, 24.00, -61.12)
CIE-LCHlch(41.24, 65.66, 291.44°)
OKLaboklab(50.21% -0.0176 -0.1762)
OKLCHoklch(50.21% 0.177 264.3)
XYZxyz(15.0880, 12.0150, 55.5457)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5AC7 #C79B2E
analogous
#2EA6C7 #2E5AC7 #4E2EC7
triadic
#2E5AC7 #C72E5A #5AC72E
tetradic
#2E5AC7 #C72EA6 #C79B2E #2EC74E
square
#2E5AC7 #C72EA6 #C79B2E #2EC74E
split-complementary
#2E5AC7 #C74E2E #A6C72E
monochromatic
#172D64 #234495 #2E5AC7 #597ED9 #8BA5E4

Accessibility & contrast

On white

6.17
#2E5AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2E5AC7
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5AC7#FFFFFF#000000##FFFFFF
##2E5AC71.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2e5ac7;
/* rgb */ color: rgb(46, 90, 199);
/* oklch */ color: oklch(50.2% 0.177 264.3);
Tailwind
colors: {
  custom: {
    50: '#7d88d9',
    500: '#2e5ac7',
    950: '#000000',
  },
}
SCSS
$custom: #2e5ac7;
$custom-light: #7d88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5ac7",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 222.745,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50206,
    "c": 0.17711,
    "h": 264.3
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#2E5AC7
secondary
#CEB883
accent
#B742E6
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2E5AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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