#2E5FC1#2E5FC1

#2E5FC1 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.8% C 0.163 H 262.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2E5FC1
RGBrgb(46, 95, 193)
HSLhsl(220, 62%, 47%)
HSVhsv(220, 76%, 76%)
CMYKcmyk(76.2%, 50.8%, 0%, 24.3%)
CIE-LABlab(42.18, 18.49, -56.12)
CIE-LCHlch(42.18, 59.09, 288.23°)
OKLaboklab(50.78% -0.0219 -0.1615)
OKLCHoklch(50.78% 0.163 262.3)
XYZxyz(14.8411, 12.6138, 52.0943)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FC1 #C1902E
analogous
#2EA9C1 #2E5FC1 #472EC1
triadic
#2E5FC1 #C12E5F #5FC12E
tetradic
#2E5FC1 #C12EA9 #C1902E #2EC147
square
#2E5FC1 #C12EA9 #C1902E #2EC147
split-complementary
#2E5FC1 #C1472E #A9C12E
monochromatic
#162E5E #224790 #2E5FC1 #5681D7 #87A5E2

Accessibility & contrast

On white

5.96
#2E5FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2E5FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FC1
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FC1#FFFFFF#000000##FFFFFF
##2E5FC11.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC5
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2e5fc1;
/* rgb */ color: rgb(46, 95, 193);
/* oklch */ color: oklch(50.8% 0.163 262.3);
Tailwind
colors: {
  custom: {
    50: '#7c8bd4',
    500: '#2e5fc1',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fc1;
$custom-light: #7c8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fc1",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 193
  },
  "hsl": {
    "h": 220,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.16294,
    "h": 262.3
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E5FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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