#2E4D9E#2E4D9E

#2E4D9E is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.137 H 265.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2E4D9E
RGBrgb(46, 77, 158)
HSLhsl(223, 55%, 40%)
HSVhsv(223, 71%, 62%)
CMYKcmyk(70.9%, 51.3%, 0%, 38%)
CIE-LABlab(34.71, 17.05, -47.49)
CIE-LCHlch(34.71, 50.46, 289.76°)
OKLaboklab(44.33% -0.011 -0.1364)
OKLCHoklch(44.33% 0.137 265.4)
XYZxyz(9.9500, 8.3562, 33.4297)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4D9E #9E7F2E
analogous
#2E859E #2E4D9E #472E9E
triadic
#2E4D9E #9E2E4D #4D9E2E
tetradic
#2E4D9E #9E2E85 #9E7F2E #2E9E47
square
#2E4D9E #9E2E85 #9E7F2E #2E9E47
split-complementary
#2E4D9E #9E472E #859E2E
monochromatic
#121F3F #20366F #2E4D9E #4167C8 #718DD6

Accessibility & contrast

On white

7.86
#2E4D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2E4D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4D9E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4D9E#FFFFFF#000000##FFFFFF
##2E4D9E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D57A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2e4d9e;
/* rgb */ color: rgb(46, 77, 158);
/* oklch */ color: oklch(44.3% 0.137 265.4);
Tailwind
colors: {
  custom: {
    50: '#757ebb',
    500: '#2e4d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2e4d9e;
$custom-light: #757ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4d9e",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 158
  },
  "hsl": {
    "h": 223.393,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.44325,
    "c": 0.1368,
    "h": 265.4
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#2E4D9E
secondary
#BDA66B
accent
#B54ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2E4D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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