#2E408D#2E408D

#2E408D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.129 H 269.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2E408D
RGBrgb(46, 64, 141)
HSLhsl(229, 51%, 37%)
HSVhsv(229, 67%, 55%)
CMYKcmyk(67.4%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.84, 19.39, -45.01)
CIE-LCHlch(29.84, 49.01, 293.31°)
OKLaboklab(40.24% -0.0004 -0.1293)
OKLCHoklch(40.24% 0.129 269.8)
XYZxyz(7.7662, 6.1700, 25.9758)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E408D #8D7B2E
analogous
#2E708D #2E408D #4C2E8D
triadic
#2E408D #8D2E40 #408D2E
tetradic
#2E408D #8D2E70 #8D7B2E #2E8D4C
square
#2E408D #8D2E70 #8D7B2E #2E8D4C
split-complementary
#2E408D #8D4C2E #708D2E
monochromatic
#101631 #1F2B5F #2E408D #3D55BB #687BCE

Accessibility & contrast

On white

9.40
#2E408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2E408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E408D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E408D#FFFFFF#000000##FFFFFF
##2E408D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e408d;
/* rgb */ color: rgb(46, 64, 141);
/* oklch */ color: oklch(40.2% 0.129 269.8);
Tailwind
colors: {
  custom: {
    50: '#7274af',
    500: '#2e408d',
    950: '#000000',
  },
}
SCSS
$custom: #2e408d;
$custom-light: #7274af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e408d",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 228.632,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40244,
    "c": 0.12929,
    "h": 269.8
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#2E408D
secondary
#B5A562
accent
#C04EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2E408D

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

Preview Lab → · Contrast checker → · Palette generator →

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