#2E40A9#2E40A9

#2E40A9 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.169 H 270.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2E40A9
RGBrgb(46, 64, 169)
HSLhsl(231, 57%, 42%)
HSVhsv(231, 73%, 66%)
CMYKcmyk(72.8%, 62.1%, 0%, 33.7%)
CIE-LABlab(32.06, 29.83, -58.40)
CIE-LCHlch(32.06, 65.58, 297.05°)
OKLaboklab(42.6% 0.0002 -0.1686)
OKLCHoklch(42.6% 0.169 270.1)
XYZxyz(10.1191, 7.1112, 38.3677)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40A9 #A9972E
analogous
#2E7DA9 #2E40A9 #5A2EA9
triadic
#2E40A9 #A92E40 #40A92E
tetradic
#2E40A9 #A92E7D #A9972E #2EA95A
square
#2E40A9 #A92E7D #A9972E #2EA95A
split-complementary
#2E40A9 #A95A2E #7DA92E
monochromatic
#141C49 #212E79 #2E40A9 #475BCD #7786DA

Accessibility & contrast

On white

8.67
#2E40A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2E40A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40A9
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40A9#FFFFFF#000000##FFFFFF
##2E40A91.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e40a9;
/* rgb */ color: rgb(46, 64, 169);
/* oklch */ color: oklch(42.6% 0.169 270.1);
Tailwind
colors: {
  custom: {
    50: '#7874c3',
    500: '#2e40a9',
    950: '#000000',
  },
}
SCSS
$custom: #2e40a9;
$custom-light: #7874c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40a9",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 231.22,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.16865,
    "h": 270.1
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#2E40A9
secondary
#C2B671
accent
#CA47E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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