#2E40BF#2E40BF

#2E40BF is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.198 H 269.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2E40BF
RGBrgb(46, 64, 191)
HSLhsl(233, 61%, 46%)
HSVhsv(233, 76%, 75%)
CMYKcmyk(75.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.00, 37.81, -68.27)
CIE-LCHlch(34.00, 78.04, 298.98°)
OKLaboklab(44.62% -0.0008 -0.1975)
OKLCHoklch(44.62% 0.198 269.8)
XYZxyz(12.3609, 8.0079, 50.1743)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40BF #BFAD2E
analogous
#2E89BF #2E40BF #652EBF
triadic
#2E40BF #BF2E40 #40BF2E
tetradic
#2E40BF #BF2E89 #BFAD2E #2EBF65
square
#2E40BF #BF2E89 #BFAD2E #2EBF65
split-complementary
#2E40BF #BF652E #89BF2E
monochromatic
#161F5C #222F8E #2E40BF #5464D6 #8691E2

Accessibility & contrast

On white

8.07
#2E40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2E40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40BF
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40BF#FFFFFF#000000##FFFFFF
##2E40BF1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e40bf;
/* rgb */ color: rgb(46, 64, 191);
/* oklch */ color: oklch(44.6% 0.198 269.8);
Tailwind
colors: {
  custom: {
    50: '#7d75d3',
    500: '#2e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #2e40bf;
$custom-light: #7d75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40bf",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 232.552,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4462,
    "c": 0.19755,
    "h": 269.8
  },
  "luminance": 0.08009
}

Semantic roles & 50–950 ramp

primary
#2E40BF
secondary
#CBC27E
accent
#D044E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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