#2E40AB#2E40AB

#2E40AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 270.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2E40AB
RGBrgb(46, 64, 171)
HSLhsl(231, 58%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(73.1%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.23, 30.56, -59.32)
CIE-LCHlch(32.23, 66.73, 297.26°)
OKLaboklab(42.78% 0.0002 -0.1713)
OKLCHoklch(42.78% 0.171 270.1)
XYZxyz(10.3083, 7.1868, 39.3641)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40AB #AB992E
analogous
#2E7FAB #2E40AB #5A2EAB
triadic
#2E40AB #AB2E40 #40AB2E
tetradic
#2E40AB #AB2E7F #AB992E #2EAB5A
square
#2E40AB #AB2E7F #AB992E #2EAB5A
split-complementary
#2E40AB #AB5A2E #7FAB2E
monochromatic
#141C4B #212E7B #2E40AB #485CCE #7987DB

Accessibility & contrast

On white

8.62
#2E40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2E40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40AB
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40AB#FFFFFF#000000##FFFFFF
##2E40AB1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e40ab;
/* rgb */ color: rgb(46, 64, 171);
/* oklch */ color: oklch(42.8% 0.171 270.1);
Tailwind
colors: {
  custom: {
    50: '#7974c5',
    500: '#2e40ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e40ab;
$custom-light: #7974c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40ab",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 231.36,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42777,
    "c": 0.17134,
    "h": 270.1
  },
  "luminance": 0.07188
}

Semantic roles & 50–950 ramp

primary
#2E40AB
secondary
#C3B772
accent
#CB47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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