#2E40AA#2E40AA

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

Color values

HEX#2E40AA
RGBrgb(46, 64, 170)
HSLhsl(231, 57%, 42%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(72.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.14, 30.19, -58.86)
CIE-LCHlch(32.14, 66.16, 297.16°)
OKLaboklab(42.69% 0.0002 -0.17)
OKLCHoklch(42.69% 0.17 270.1)
XYZxyz(10.2133, 7.1489, 38.8640)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40AA #AA982E
analogous
#2E7EAA #2E40AA #5A2EAA
triadic
#2E40AA #AA2E40 #40AA2E
tetradic
#2E40AA #AA2E7E #AA982E #2EAA5A
square
#2E40AA #AA2E7E #AA982E #2EAA5A
split-complementary
#2E40AA #AA5A2E #7EAA2E
monochromatic
#141C4A #212E7A #2E40AA #485BCD #7886DA

Accessibility & contrast

On white

8.64
#2E40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2E40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40AA
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40AA#FFFFFF#000000##FFFFFF
##2E40AA1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e40aa;
/* rgb */ color: rgb(46, 64, 170);
/* oklch */ color: oklch(42.7% 0.170 270.1);
Tailwind
colors: {
  custom: {
    50: '#7974c4',
    500: '#2e40aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e40aa;
$custom-light: #7974c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40aa",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 231.29,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42687,
    "c": 0.17,
    "h": 270.1
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#2E40AA
secondary
#C3B771
accent
#CA47E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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