#2E5FC2#2E5FC2

#2E5FC2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.164 H 262.4°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2E5FC2
RGBrgb(46, 95, 194)
HSLhsl(220, 62%, 47%)
HSVhsv(220, 76%, 76%)
CMYKcmyk(76.3%, 51%, 0%, 23.9%)
CIE-LABlab(42.24, 18.87, -56.59)
CIE-LCHlch(42.24, 59.65, 288.44°)
OKLaboklab(50.86% -0.0218 -0.1628)
OKLCHoklch(50.86% 0.164 262.4)
XYZxyz(14.9530, 12.6586, 52.6838)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FC2 #C2912E
analogous
#2EA9C2 #2E5FC2 #472EC2
triadic
#2E5FC2 #C22E5F #5FC22E
tetradic
#2E5FC2 #C22EA9 #C2912E #2EC247
square
#2E5FC2 #C22EA9 #C2912E #2EC247
split-complementary
#2E5FC2 #C2472E #A9C22E
monochromatic
#172F5F #224791 #2E5FC2 #5681D7 #88A6E3

Accessibility & contrast

On white

5.95
#2E5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2E5FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FC2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FC2#FFFFFF#000000##FFFFFF
##2E5FC21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2e5fc2;
/* rgb */ color: rgb(46, 95, 194);
/* oklch */ color: oklch(50.9% 0.164 262.4);
Tailwind
colors: {
  custom: {
    50: '#7c8bd5',
    500: '#2e5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fc2;
$custom-light: #7c8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fc2",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 220.135,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50855,
    "c": 0.16429,
    "h": 262.4
  },
  "luminance": 0.1266
}

Semantic roles & 50–950 ramp

primary
#2E5FC2
secondary
#CCB37F
accent
#AF43E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2E5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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