#2E40AF#2E40AF

#2E40AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.177 H 270.0°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2E40AF
RGBrgb(46, 64, 175)
HSLhsl(232, 58%, 43%)
HSVhsv(232, 74%, 69%)
CMYKcmyk(73.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.57, 32.03, -61.15)
CIE-LCHlch(32.57, 69.03, 297.64°)
OKLaboklab(43.14% 0 -0.1767)
OKLCHoklch(43.14% 0.177 270)
XYZxyz(10.6953, 7.3417, 41.4025)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40AF #AF9D2E
analogous
#2E80AF #2E40AF #5C2EAF
triadic
#2E40AF #AF2E40 #40AF2E
tetradic
#2E40AF #AF2E80 #AF9D2E #2EAF5C
square
#2E40AF #AF2E80 #AF9D2E #2EAF5C
split-complementary
#2E40AF #AF5C2E #80AF2E
monochromatic
#151D4E #212E7F #2E40AF #4B5DD0 #7B89DC

Accessibility & contrast

On white

8.51
#2E40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2E40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40AF
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40AF#FFFFFF#000000##FFFFFF
##2E40AF1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e40af;
/* rgb */ color: rgb(46, 64, 175);
/* oklch */ color: oklch(43.1% 0.177 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a74c8',
    500: '#2e40af',
    950: '#000000',
  },
}
SCSS
$custom: #2e40af;
$custom-light: #7a74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40af",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 231.628,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43136,
    "c": 0.1767,
    "h": 270
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#2E40AF
secondary
#C5B974
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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