#2E40B8#2E40B8

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

Color values

HEX#2E40B8
RGBrgb(46, 64, 184)
HSLhsl(232, 60%, 45%)
HSVhsv(232, 75%, 72%)
CMYKcmyk(75%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.37, 35.30, -65.19)
CIE-LCHlch(33.37, 74.13, 298.43°)
OKLaboklab(43.96% -0.0004 -0.1885)
OKLCHoklch(43.96% 0.189 269.9)
XYZxyz(11.6089, 7.7071, 46.2139)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40B8 #B8A62E
analogous
#2E85B8 #2E40B8 #612EB8
triadic
#2E40B8 #B82E40 #40B82E
tetradic
#2E40B8 #B82E85 #B8A62E #2EB861
square
#2E40B8 #B82E85 #B8A62E #2EB861
split-complementary
#2E40B8 #B8612E #85B82E
monochromatic
#161E56 #222F87 #2E40B8 #5061D3 #818DDF

Accessibility & contrast

On white

8.26
#2E40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2E40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40B8
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40B8#FFFFFF#000000##FFFFFF
##2E40B81.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e40b8;
/* rgb */ color: rgb(46, 64, 184);
/* oklch */ color: oklch(44.0% 0.189 269.9);
Tailwind
colors: {
  custom: {
    50: '#7c75ce',
    500: '#2e40b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e40b8;
$custom-light: #7c75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40b8",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 232.174,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.18853,
    "h": 269.9
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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