#2E5FC7#2E5FC7

#2E5FC7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.171 H 262.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#2E5FC7
RGBrgb(46, 95, 199)
HSLhsl(221, 62%, 48%)
HSVhsv(221, 77%, 78%)
CMYKcmyk(76.9%, 52.3%, 0%, 22%)
CIE-LABlab(42.59, 20.76, -58.92)
CIE-LCHlch(42.59, 62.47, 289.41°)
OKLaboklab(51.23% -0.0213 -0.1697)
OKLCHoklch(51.23% 0.171 262.9)
XYZxyz(15.5240, 12.8870, 55.6910)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FC7 #C7962E
analogous
#2EACC7 #2E5FC7 #492EC7
triadic
#2E5FC7 #C72E5F #5FC72E
tetradic
#2E5FC7 #C72EAC #C7962E #2EC749
square
#2E5FC7 #C72EAC #C7962E #2EC749
split-complementary
#2E5FC7 #C7492E #ACC72E
monochromatic
#173064 #234795 #2E5FC7 #5982D9 #8BA8E4

Accessibility & contrast

On white

5.87
#2E5FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2E5FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FC7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FC7#FFFFFF#000000##FFFFFF
##2E5FC71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156CCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2e5fc7;
/* rgb */ color: rgb(46, 95, 199);
/* oklch */ color: oklch(51.2% 0.171 262.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bd9',
    500: '#2e5fc7',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fc7;
$custom-light: #7d8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fc7",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 220.784,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51231,
    "c": 0.17104,
    "h": 262.9
  },
  "luminance": 0.12889
}

Semantic roles & 50–950 ramp

primary
#2E5FC7
secondary
#CEB683
accent
#B142E6
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2E5FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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