#2E4E7F#2E4E7F

#2E4E7F is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.4% C 0.090 H 258.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2E4E7F
RGBrgb(46, 78, 127)
HSLhsl(216, 47%, 34%)
HSVhsv(216, 64%, 50%)
CMYKcmyk(63.8%, 38.6%, 0%, 50.2%)
CIE-LABlab(33.05, 4.74, -31.22)
CIE-LCHlch(33.05, 31.58, 278.63°)
OKLaboklab(42.42% -0.0178 -0.0886)
OKLCHoklch(42.42% 0.09 258.7)
XYZxyz(7.6805, 7.5612, 21.1293)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4E7F #7F5F2E
analogous
#2E777F #2E4E7F #372E7F
triadic
#2E4E7F #7F2E4E #4E7F2E
tetradic
#2E4E7F #7F2E77 #7F5F2E #2E7F37
square
#2E4E7F #7F2E77 #7F5F2E #2E7F37
split-complementary
#2E4E7F #7F372E #777F2E
monochromatic
#0D1725 #1E3252 #2E4E7F #3E6AAC #6189C6

Accessibility & contrast

On white

8.36
#2E4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2E4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4E7F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4E7F#FFFFFF#000000##FFFFFF
##2E4E7F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4e7f;
/* rgb */ color: rgb(46, 78, 127);
/* oklch */ color: oklch(42.4% 0.090 258.7);
Tailwind
colors: {
  custom: {
    50: '#6f7fa4',
    500: '#2e4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e4e7f;
$custom-light: #6f7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4e7f",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 216.296,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42415,
    "c": 0.09033,
    "h": 258.7
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#2E4E7F
secondary
#AD8D5C
accent
#A251D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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