#2E40B1#2E40B1

#2E40B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.179 H 270.0°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2E40B1
RGBrgb(46, 64, 177)
HSLhsl(232, 59%, 44%)
HSVhsv(232, 74%, 69%)
CMYKcmyk(74%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.75, 32.76, -62.05)
CIE-LCHlch(32.75, 70.17, 297.83°)
OKLaboklab(43.32% 0 -0.1793)
OKLCHoklch(43.32% 0.179 270)
XYZxyz(10.8932, 7.4208, 42.4447)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B1 #B19F2E
analogous
#2E81B1 #2E40B1 #5D2EB1
triadic
#2E40B1 #B12E40 #40B12E
tetradic
#2E40B1 #B12E81 #B19F2E #2EB15D
square
#2E40B1 #B12E81 #B19F2E #2EB15D
split-complementary
#2E40B1 #B15D2E #81B12E
monochromatic
#151D50 #212E80 #2E40B1 #4C5ED0 #7C8ADD

Accessibility & contrast

On white

8.45
#2E40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2E40B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B1#FFFFFF#000000##FFFFFF
##2E40B11.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e40b1;
/* rgb */ color: rgb(46, 64, 177);
/* oklch */ color: oklch(43.3% 0.179 270.0);
Tailwind
colors: {
  custom: {
    50: '#7a74c9',
    500: '#2e40b1',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b1;
$custom-light: #7a74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b1",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 231.756,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.17935,
    "h": 270
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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