#2E408B#2E408B

#2E408B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.126 H 269.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2E408B
RGBrgb(46, 64, 139)
HSLhsl(228, 50%, 36%)
HSVhsv(228, 67%, 55%)
CMYKcmyk(66.9%, 54%, 0%, 45.5%)
CIE-LABlab(29.69, 18.64, -44.02)
CIE-LCHlch(29.69, 47.80, 292.95°)
OKLaboklab(40.09% -0.0006 -0.1263)
OKLCHoklch(40.09% 0.126 269.7)
XYZxyz(7.6187, 6.1110, 25.1991)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E408B #8B792E
analogous
#2E6F8B #2E408B #4B2E8B
triadic
#2E408B #8B2E40 #408B2E
tetradic
#2E408B #8B2E6F #8B792E #2E8B4B
square
#2E408B #8B2E6F #8B792E #2E8B4B
split-complementary
#2E408B #8B4B2E #6F8B2E
monochromatic
#10162F #1F2B5D #2E408B #3D55B9 #677ACD

Accessibility & contrast

On white

9.45
#2E408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2E408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E408B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E408B#FFFFFF#000000##FFFFFF
##2E408B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e408b;
/* rgb */ color: rgb(46, 64, 139);
/* oklch */ color: oklch(40.1% 0.126 269.7);
Tailwind
colors: {
  custom: {
    50: '#7274ad',
    500: '#2e408b',
    950: '#000000',
  },
}
SCSS
$custom: #2e408b;
$custom-light: #7274ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e408b",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 228.387,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40086,
    "c": 0.12635,
    "h": 269.7
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#2E408B
secondary
#B3A461
accent
#BF4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2E408B

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

Preview Lab → · Contrast checker → · Palette generator →

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