#2E40B7#2E40B7

#2E40B7 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.187 H 269.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2E40B7
RGBrgb(46, 64, 183)
HSLhsl(232, 60%, 45%)
HSVhsv(232, 75%, 72%)
CMYKcmyk(74.9%, 65%, 0%, 28.2%)
CIE-LABlab(33.28, 34.94, -64.75)
CIE-LCHlch(33.28, 73.57, 298.35°)
OKLaboklab(43.87% -0.0003 -0.1872)
OKLCHoklch(43.87% 0.187 269.9)
XYZxyz(11.5044, 7.6653, 45.6638)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B7 #B7A52E
analogous
#2E84B7 #2E40B7 #612EB7
triadic
#2E40B7 #B72E40 #40B72E
tetradic
#2E40B7 #B72E84 #B7A52E #2EB761
square
#2E40B7 #B72E84 #B7A52E #2EB761
split-complementary
#2E40B7 #B7612E #84B72E
monochromatic
#151E55 #222F86 #2E40B7 #4F61D3 #808DDF

Accessibility & contrast

On white

8.29
#2E40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2E40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B7
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B7#FFFFFF#000000##FFFFFF
##2E40B71.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e40b7;
/* rgb */ color: rgb(46, 64, 183);
/* oklch */ color: oklch(43.9% 0.187 269.9);
Tailwind
colors: {
  custom: {
    50: '#7c75ce',
    500: '#2e40b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b7;
$custom-light: #7c75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b7",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 232.117,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4387,
    "c": 0.18723,
    "h": 269.9
  },
  "luminance": 0.07667
}

Semantic roles & 50–950 ramp

primary
#2E40B7
secondary
#C8BE79
accent
#CE45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2E40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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