#2E5AA8#2E5AA8

#2E5AA8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.135 H 260.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2E5AA8
RGBrgb(46, 90, 168)
HSLhsl(218, 57%, 42%)
HSVhsv(218, 73%, 66%)
CMYKcmyk(72.6%, 46.4%, 0%, 34.1%)
CIE-LABlab(39.10, 12.26, -46.40)
CIE-LCHlch(39.10, 47.99, 284.80°)
OKLaboklab(47.9% -0.0213 -0.1329)
OKLCHoklch(47.9% 0.135 260.9)
XYZxyz(11.8482, 10.7191, 38.4828)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5AA8 #A87C2E
analogous
#2E97A8 #2E5AA8 #3F2EA8
triadic
#2E5AA8 #A82E5A #5AA82E
tetradic
#2E5AA8 #A82E97 #A87C2E #2EA83F
square
#2E5AA8 #A82E97 #A87C2E #2EA83F
split-complementary
#2E5AA8 #A83F2E #97A82E
monochromatic
#142748 #214078 #2E5AA8 #4777CD #779ADA

Accessibility & contrast

On white

6.68
#2E5AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2E5AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5AA8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5AA8#FFFFFF#000000##FFFFFF
##2E5AA81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AB
Deuteranopia (green-blind)
#1757A6
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2e5aa8;
/* rgb */ color: rgb(46, 90, 168);
/* oklch */ color: oklch(47.9% 0.135 260.9);
Tailwind
colors: {
  custom: {
    50: '#7788c2',
    500: '#2e5aa8',
    950: '#000000',
  },
}
SCSS
$custom: #2e5aa8;
$custom-light: #7788c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5aa8",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 168
  },
  "hsl": {
    "h": 218.361,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47897,
    "c": 0.13464,
    "h": 260.9
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

primary
#2E5AA8
secondary
#C2A470
accent
#A948E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2E5AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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