#2E4AA5#2E4AA5

#2E4AA5 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.151 H 267.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2E4AA5
RGBrgb(46, 74, 165)
HSLhsl(226, 56%, 41%)
HSVhsv(226, 72%, 65%)
CMYKcmyk(72.1%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.38, 21.71, -52.22)
CIE-LCHlch(34.38, 56.56, 292.57°)
OKLaboklab(44.24% -0.0077 -0.1504)
OKLCHoklch(44.24% 0.151 267.1)
XYZxyz(10.3647, 8.1939, 36.6254)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4AA5 #A5892E
analogous
#2E86A5 #2E4AA5 #4E2EA5
triadic
#2E4AA5 #A52E4A #4AA52E
tetradic
#2E4AA5 #A52E86 #A5892E #2EA54E
square
#2E4AA5 #A52E86 #A5892E #2EA54E
split-complementary
#2E4AA5 #A54E2E #86A52E
monochromatic
#131F45 #213575 #2E4AA5 #4565CB #758CD8

Accessibility & contrast

On white

7.96
#2E4AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2E4AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4AA5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4AA5#FFFFFF#000000##FFFFFF
##2E4AA51.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e4aa5;
/* rgb */ color: rgb(46, 74, 165);
/* oklch */ color: oklch(44.2% 0.151 267.1);
Tailwind
colors: {
  custom: {
    50: '#777cc0',
    500: '#2e4aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2e4aa5;
$custom-light: #777cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4aa5",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 225.882,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44235,
    "c": 0.15056,
    "h": 267.1
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#2E4AA5
secondary
#C0AD6F
accent
#BC48E0
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2E4AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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