#2E40B6#2E40B6

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

Color values

HEX#2E40B6
RGBrgb(46, 64, 182)
HSLhsl(232, 60%, 45%)
HSVhsv(232, 75%, 71%)
CMYKcmyk(74.7%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.19, 34.57, -64.30)
CIE-LCHlch(33.19, 73.01, 298.27°)
OKLaboklab(43.78% -0.0003 -0.1859)
OKLCHoklch(43.78% 0.186 269.9)
XYZxyz(11.4007, 7.6238, 45.1176)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B6 #B6A42E
analogous
#2E84B6 #2E40B6 #602EB6
triadic
#2E40B6 #B62E40 #40B62E
tetradic
#2E40B6 #B62E84 #B6A42E #2EB660
square
#2E40B6 #B62E84 #B6A42E #2EB660
split-complementary
#2E40B6 #B6602E #84B62E
monochromatic
#151E54 #222F85 #2E40B6 #4F60D2 #808CDF

Accessibility & contrast

On white

8.32
#2E40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2E40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B6
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B6#FFFFFF#000000##FFFFFF
##2E40B61.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e40b6;
/* rgb */ color: rgb(46, 64, 182);
/* oklch */ color: oklch(43.8% 0.186 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b75cd',
    500: '#2e40b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b6;
$custom-light: #7b75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b6",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 232.059,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43777,
    "c": 0.18592,
    "h": 269.9
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#2E40B6
secondary
#C8BD78
accent
#CE45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2E40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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