#2E40B4#2E40B4

#2E40B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.183 H 269.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2E40B4
RGBrgb(46, 64, 180)
HSLhsl(232, 59%, 44%)
HSVhsv(232, 74%, 71%)
CMYKcmyk(74.4%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.01, 33.85, -63.41)
CIE-LCHlch(33.01, 71.87, 298.10°)
OKLaboklab(43.59% -0.0002 -0.1833)
OKLCHoklch(43.59% 0.183 269.9)
XYZxyz(11.1955, 7.5417, 44.0368)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B4 #B4A22E
analogous
#2E83B4 #2E40B4 #5F2EB4
triadic
#2E40B4 #B42E40 #40B42E
tetradic
#2E40B4 #B42E83 #B4A22E #2EB45F
square
#2E40B4 #B42E83 #B4A22E #2EB45F
split-complementary
#2E40B4 #B45F2E #83B42E
monochromatic
#151D53 #222F83 #2E40B4 #4E5FD2 #7E8BDE

Accessibility & contrast

On white

8.37
#2E40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2E40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B4
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B4#FFFFFF#000000##FFFFFF
##2E40B41.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e40b4;
/* rgb */ color: rgb(46, 64, 180);
/* oklch */ color: oklch(43.6% 0.183 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#2e40b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b4;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b4",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 231.94,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43593,
    "c": 0.1833,
    "h": 269.9
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#2E40B4
secondary
#C7BC77
accent
#CD45E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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