#2E5EA6#2E5EA6

#2E5EA6 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.127 H 258.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2E5EA6
RGBrgb(46, 94, 166)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(72.3%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.14, 8.90, -43.55)
CIE-LCHlch(40.14, 44.45, 281.55°)
OKLaboklab(48.66% -0.0254 -0.1245)
OKLCHoklch(48.66% 0.127 258.4)
XYZxyz(12.0099, 11.3381, 37.6245)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5EA6 #A6762E
analogous
#2E9AA6 #2E5EA6 #3A2EA6
triadic
#2E5EA6 #A62E5E #5EA62E
tetradic
#2E5EA6 #A62E9A #A6762E #2EA63A
square
#2E5EA6 #A62E9A #A6762E #2EA63A
split-complementary
#2E5EA6 #A63A2E #9AA62E
monochromatic
#132846 #214376 #2E5EA6 #467BCC #769DD9

Accessibility & contrast

On white

6.43
#2E5EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2E5EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5EA6
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5EA6#FFFFFF#000000##FFFFFF
##2E5EA61.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#2659A5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5ea6;
/* rgb */ color: rgb(46, 94, 166);
/* oklch */ color: oklch(48.7% 0.127 258.4);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2e5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2e5ea6;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5ea6",
  "rgb": {
    "r": 46,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 216,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4866,
    "c": 0.12705,
    "h": 258.4
  },
  "luminance": 0.11339
}

Semantic roles & 50–950 ramp

primary
#2E5EA6
secondary
#C1A06F
accent
#A348E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2E5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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