#2E40BD#2E40BD

#2E40BD is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.195 H 269.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2E40BD
RGBrgb(46, 64, 189)
HSLhsl(232, 61%, 46%)
HSVhsv(232, 76%, 74%)
CMYKcmyk(75.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(33.82, 37.09, -67.40)
CIE-LCHlch(33.82, 76.93, 298.83°)
OKLaboklab(44.43% -0.0007 -0.195)
OKLCHoklch(44.43% 0.195 269.8)
XYZxyz(12.1423, 7.9204, 49.0231)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40BD #BDAB2E
analogous
#2E87BD #2E40BD #642EBD
triadic
#2E40BD #BD2E40 #40BD2E
tetradic
#2E40BD #BD2E87 #BDAB2E #2EBD64
square
#2E40BD #BD2E87 #BDAB2E #2EBD64
split-complementary
#2E40BD #BD642E #87BD2E
monochromatic
#161F5B #222F8C #2E40BD #5363D5 #8490E1

Accessibility & contrast

On white

8.13
#2E40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2E40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40BD
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40BD#FFFFFF#000000##FFFFFF
##2E40BD1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e40bd;
/* rgb */ color: rgb(46, 64, 189);
/* oklch */ color: oklch(44.4% 0.195 269.8);
Tailwind
colors: {
  custom: {
    50: '#7d75d2',
    500: '#2e40bd',
    950: '#000000',
  },
}
SCSS
$custom: #2e40bd;
$custom-light: #7d75d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40bd",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 232.448,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.19499,
    "h": 269.8
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#2E40BD
secondary
#CAC17C
accent
#D044E4
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2E40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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