#2E5DC7#2E5DC7

#2E5DC7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.173 H 263.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2E5DC7
RGBrgb(46, 93, 199)
HSLhsl(222, 62%, 48%)
HSVhsv(222, 77%, 78%)
CMYKcmyk(76.9%, 53.3%, 0%, 22%)
CIE-LABlab(42.05, 22.06, -59.81)
CIE-LCHlch(42.05, 63.74, 290.24°)
OKLaboklab(50.82% -0.0198 -0.1723)
OKLCHoklch(50.82% 0.173 263.5)
XYZxyz(15.3462, 12.5313, 55.6317)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5DC7 #C7982E
analogous
#2EA9C7 #2E5DC7 #4C2EC7
triadic
#2E5DC7 #C72E5D #5DC72E
tetradic
#2E5DC7 #C72EA9 #C7982E #2EC74C
square
#2E5DC7 #C72EA9 #C7982E #2EC74C
split-complementary
#2E5DC7 #C74C2E #A9C72E
monochromatic
#172F64 #234695 #2E5DC7 #5981D9 #8BA7E4

Accessibility & contrast

On white

5.99
#2E5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2E5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5DC7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5DC7#FFFFFF#000000##FFFFFF
##2E5DC71.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2e5dc7;
/* rgb */ color: rgb(46, 93, 199);
/* oklch */ color: oklch(50.8% 0.173 263.5);
Tailwind
colors: {
  custom: {
    50: '#7d8ad9',
    500: '#2e5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #2e5dc7;
$custom-light: #7d8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5dc7",
  "rgb": {
    "r": 46,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 221.569,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50818,
    "c": 0.17347,
    "h": 263.5
  },
  "luminance": 0.12533
}

Semantic roles & 50–950 ramp

primary
#2E5DC7
secondary
#CEB783
accent
#B342E6
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2E5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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