#2E40B3#2E40B3

#2E40B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.182 H 270.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2E40B3
RGBrgb(46, 64, 179)
HSLhsl(232, 59%, 44%)
HSVhsv(232, 74%, 70%)
CMYKcmyk(74.3%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.92, 33.49, -62.96)
CIE-LCHlch(32.92, 71.31, 298.01°)
OKLaboklab(43.5% -0.0001 -0.182)
OKLCHoklch(43.5% 0.182 270)
XYZxyz(11.0940, 7.5011, 43.5023)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B3 #B3A12E
analogous
#2E83B3 #2E40B3 #5F2EB3
triadic
#2E40B3 #B32E40 #40B32E
tetradic
#2E40B3 #B32E83 #B3A12E #2EB35F
square
#2E40B3 #B32E83 #B3A12E #2EB35F
split-complementary
#2E40B3 #B35F2E #83B32E
monochromatic
#151D52 #212F82 #2E40B3 #4D5FD1 #7E8BDE

Accessibility & contrast

On white

8.40
#2E40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2E40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B3
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B3#FFFFFF#000000##FFFFFF
##2E40B31.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e40b3;
/* rgb */ color: rgb(46, 64, 179);
/* oklch */ color: oklch(43.5% 0.182 270.0);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#2e40b3',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b3;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b3",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 231.88,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43501,
    "c": 0.18199,
    "h": 270
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#2E40B3
secondary
#C6BC76
accent
#CD46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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