#2E407B#2E407B

#2E407B is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.102 H 268.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2E407B
RGBrgb(46, 64, 123)
HSLhsl(226, 46%, 33%)
HSVhsv(226, 63%, 48%)
CMYKcmyk(62.6%, 48%, 0%, 51.8%)
CIE-LABlab(28.58, 12.66, -35.84)
CIE-LCHlch(28.58, 38.01, 289.45°)
OKLaboklab(38.89% -0.0026 -0.1023)
OKLCHoklch(38.89% 0.102 268.6)
XYZxyz(6.5341, 5.6772, 19.4865)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407B #7B692E
analogous
#2E667B #2E407B #422E7B
triadic
#2E407B #7B2E40 #407B2E
tetradic
#2E407B #7B2E66 #7B692E #2E7B42
square
#2E407B #7B2E66 #7B692E #2E7B42
split-complementary
#2E407B #7B422E #667B2E
monochromatic
#0D1222 #1D294E #2E407B #3F57A8 #6077C3

Accessibility & contrast

On white

9.83
#2E407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E407B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407B#FFFFFF#000000##FFFFFF
##2E407B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#18407A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e407b;
/* rgb */ color: rgb(46, 64, 123);
/* oklch */ color: oklch(38.9% 0.102 268.6);
Tailwind
colors: {
  custom: {
    50: '#6e74a1',
    500: '#2e407b',
    950: '#000000',
  },
}
SCSS
$custom: #2e407b;
$custom-light: #6e74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407b",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 225.974,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3889,
    "c": 0.10234,
    "h": 268.6
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#2E407B
secondary
#AA985B
accent
#B753D5
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2E407B

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

Preview Lab → · Contrast checker → · Palette generator →

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