#2E40B5#2E40B5

#2E40B5 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.185 H 269.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2E40B5
RGBrgb(46, 64, 181)
HSLhsl(232, 59%, 45%)
HSVhsv(232, 75%, 71%)
CMYKcmyk(74.6%, 64.6%, 0%, 29%)
CIE-LABlab(33.10, 34.21, -63.85)
CIE-LCHlch(33.10, 72.44, 298.18°)
OKLaboklab(43.69% -0.0002 -0.1846)
OKLCHoklch(43.69% 0.185 269.9)
XYZxyz(11.2977, 7.5826, 44.5753)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B5 #B5A32E
analogous
#2E84B5 #2E40B5 #602EB5
triadic
#2E40B5 #B52E40 #40B52E
tetradic
#2E40B5 #B52E84 #B5A32E #2EB560
square
#2E40B5 #B52E84 #B5A32E #2EB560
split-complementary
#2E40B5 #B5602E #84B52E
monochromatic
#151D53 #222F84 #2E40B5 #4E60D2 #7F8CDE

Accessibility & contrast

On white

8.34
#2E40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2E40B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B5
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B5#FFFFFF#000000##FFFFFF
##2E40B51.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e40b5;
/* rgb */ color: rgb(46, 64, 181);
/* oklch */ color: oklch(43.7% 0.185 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b75cc',
    500: '#2e40b5',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b5;
$custom-light: #7b75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b5",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 232,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43685,
    "c": 0.18462,
    "h": 269.9
  },
  "luminance": 0.07584
}

Semantic roles & 50–950 ramp

primary
#2E40B5
secondary
#C7BD78
accent
#CE45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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