#2E40BA#2E40BA

#2E40BA is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.191 H 269.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2E40BA
RGBrgb(46, 64, 186)
HSLhsl(232, 60%, 45%)
HSVhsv(232, 75%, 73%)
CMYKcmyk(75.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(33.54, 36.02, -66.08)
CIE-LCHlch(33.54, 75.26, 298.59°)
OKLaboklab(44.15% -0.0005 -0.1911)
OKLCHoklch(44.15% 0.191 269.8)
XYZxyz(11.8200, 7.7915, 47.3258)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40BA #BAA82E
analogous
#2E86BA #2E40BA #622EBA
triadic
#2E40BA #BA2E40 #40BA2E
tetradic
#2E40BA #BA2E86 #BAA82E #2EBA62
square
#2E40BA #BA2E86 #BAA82E #2EBA62
split-complementary
#2E40BA #BA622E #86BA2E
monochromatic
#161E58 #222F89 #2E40BA #5162D4 #828EE0

Accessibility & contrast

On white

8.21
#2E40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40BA
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40BA#FFFFFF#000000##FFFFFF
##2E40BA1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e40ba;
/* rgb */ color: rgb(46, 64, 186);
/* oklch */ color: oklch(44.1% 0.191 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c75d0',
    500: '#2e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #2e40ba;
$custom-light: #7c75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40ba",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 232.286,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44149,
    "c": 0.19112,
    "h": 269.8
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#2E40BA
secondary
#C9BF7B
accent
#CF44E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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