#2E40AC#2E40AC

#2E40AC is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.173 H 270.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2E40AC
RGBrgb(46, 64, 172)
HSLhsl(231, 58%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(73.3%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.31, 30.93, -59.78)
CIE-LCHlch(32.31, 67.31, 297.36°)
OKLaboklab(42.87% 0.0001 -0.1727)
OKLCHoklch(42.87% 0.173 270)
XYZxyz(10.4040, 7.2251, 39.8680)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40AC #AC9A2E
analogous
#2E7FAC #2E40AC #5B2EAC
triadic
#2E40AC #AC2E40 #40AC2E
tetradic
#2E40AC #AC2E7F #AC9A2E #2EAC5B
square
#2E40AC #AC2E7F #AC9A2E #2EAC5B
split-complementary
#2E40AC #AC5B2E #7FAC2E
monochromatic
#141C4B #212E7C #2E40AC #495CCE #7987DB

Accessibility & contrast

On white

8.59
#2E40AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2E40AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40AC
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40AC#FFFFFF#000000##FFFFFF
##2E40AC1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e40ac;
/* rgb */ color: rgb(46, 64, 172);
/* oklch */ color: oklch(42.9% 0.173 270.0);
Tailwind
colors: {
  custom: {
    50: '#7974c6',
    500: '#2e40ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e40ac;
$custom-light: #7974c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40ac",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 231.429,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42866,
    "c": 0.17269,
    "h": 270
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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