#2E408C#2E408C

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

Color values

HEX#2E408C
RGBrgb(46, 64, 140)
HSLhsl(229, 51%, 36%)
HSVhsv(229, 67%, 55%)
CMYKcmyk(67.1%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.76, 19.02, -44.51)
CIE-LCHlch(29.76, 48.41, 293.13°)
OKLaboklab(40.17% -0.0005 -0.1278)
OKLCHoklch(40.17% 0.128 269.8)
XYZxyz(7.6921, 6.1404, 25.5857)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E408C #8C7A2E
analogous
#2E6F8C #2E408C #4B2E8C
triadic
#2E408C #8C2E40 #408C2E
tetradic
#2E408C #8C2E6F #8C7A2E #2E8C4B
square
#2E408C #8C2E6F #8C7A2E #2E8C4B
split-complementary
#2E408C #8C4B2E #6F8C2E
monochromatic
#101630 #1F2B5E #2E408C #3D55BA #677BCD

Accessibility & contrast

On white

9.42
#2E408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E408C
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E408C#FFFFFF#000000##FFFFFF
##2E408C1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e408c;
/* rgb */ color: rgb(46, 64, 140);
/* oklch */ color: oklch(40.2% 0.128 269.8);
Tailwind
colors: {
  custom: {
    50: '#7274ae',
    500: '#2e408c',
    950: '#000000',
  },
}
SCSS
$custom: #2e408c;
$custom-light: #7274ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e408c",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 228.511,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40165,
    "c": 0.12782,
    "h": 269.8
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E408C

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

Preview Lab → · Contrast checker → · Palette generator →

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