#2E407F#2E407F

#2E407F is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.108 H 269.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2E407F
RGBrgb(46, 64, 127)
HSLhsl(227, 47%, 34%)
HSVhsv(227, 64%, 50%)
CMYKcmyk(63.8%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.85, 14.15, -37.92)
CIE-LCHlch(28.85, 40.47, 290.46°)
OKLaboklab(39.18% -0.002 -0.1084)
OKLCHoklch(39.18% 0.108 269)
XYZxyz(6.7896, 5.7794, 20.8323)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407F #7F6D2E
analogous
#2E697F #2E407F #452E7F
triadic
#2E407F #7F2E40 #407F2E
tetradic
#2E407F #7F2E69 #7F6D2E #2E7F45
square
#2E407F #7F2E69 #7F6D2E #2E7F45
split-complementary
#2E407F #7F452E #697F2E
monochromatic
#0D1325 #1E2952 #2E407F #3E57AC #6178C6

Accessibility & contrast

On white

9.74
#2E407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2E407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E407F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407F#FFFFFF#000000##FFFFFF
##2E407F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#11417E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e407f;
/* rgb */ color: rgb(46, 64, 127);
/* oklch */ color: oklch(39.2% 0.108 269.0);
Tailwind
colors: {
  custom: {
    50: '#6f74a4',
    500: '#2e407f',
    950: '#000000',
  },
}
SCSS
$custom: #2e407f;
$custom-light: #6f74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407f",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 226.667,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39179,
    "c": 0.10844,
    "h": 269
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#2E407F
secondary
#AD9B5C
accent
#B951D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2E407F

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

Preview Lab → · Contrast checker → · Palette generator →

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