#2E40DB#2E40DB

#2E40DB is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.232 H 269.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2E40DB
RGBrgb(46, 64, 219)
HSLhsl(234, 71%, 52%)
HSVhsv(234, 79%, 86%)
CMYKcmyk(79%, 70.8%, 0%, 14.1%)
CIE-LABlab(36.67, 47.56, -80.13)
CIE-LCHlch(36.67, 93.18, 300.69°)
OKLaboklab(47.36% -0.0035 -0.2321)
OKLCHoklch(47.36% 0.232 269.1)
XYZxyz(15.7419, 9.3603, 67.9812)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40DB #DBC92E
analogous
#2E97DB #2E40DB #732EDB
triadic
#2E40DB #DB2E40 #40DB2E
tetradic
#2E40DB #DB2E97 #DBC92E #2EDB73
square
#2E40DB #DB2E97 #DBC92E #2EDB73
split-complementary
#2E40DB #DB732E #97DB2E
monochromatic
#151F7A #1E2DAE #2E40DB #6270E4 #969FED

Accessibility & contrast

On white

7.31
#2E40DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2E40DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40DB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40DB#FFFFFF#000000##FFFFFF
##2E40DB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE0
Deuteranopia (green-blind)
#004ED8
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e40db;
/* rgb */ color: rgb(46, 64, 219);
/* oklch */ color: oklch(47.4% 0.232 269.1);
Tailwind
colors: {
  custom: {
    50: '#8476e8',
    500: '#2e40db',
    950: '#000000',
  },
}
SCSS
$custom: #2e40db;
$custom-light: #8476e8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40db",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 233.757,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47358,
    "c": 0.23216,
    "h": 269.1
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#2E40DB
secondary
#D8D08D
accent
#DB3AED
background
#F9F7FE
surface
#F1EDFD
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #2E40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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