#2E4F7F#2E4F7F

#2E4F7F is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.089 H 257.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2E4F7F
RGBrgb(46, 79, 127)
HSLhsl(216, 47%, 34%)
HSVhsv(216, 64%, 50%)
CMYKcmyk(63.8%, 37.8%, 0%, 50.2%)
CIE-LABlab(33.36, 4.08, -30.73)
CIE-LCHlch(33.36, 31.00, 277.56°)
OKLaboklab(42.65% -0.0189 -0.0871)
OKLCHoklch(42.65% 0.089 257.7)
XYZxyz(7.7521, 7.7044, 21.1531)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F7F #7F5E2E
analogous
#2E787F #2E4F7F #362E7F
triadic
#2E4F7F #7F2E4F #4F7F2E
tetradic
#2E4F7F #7F2E78 #7F5E2E #2E7F36
square
#2E4F7F #7F2E78 #7F5E2E #2E7F36
split-complementary
#2E4F7F #7F362E #787F2E
monochromatic
#0D1725 #1E3352 #2E4F7F #3E6BAC #618AC6

Accessibility & contrast

On white

8.26
#2E4F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2E4F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F7F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F7F#FFFFFF#000000##FFFFFF
##2E4F7F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5381
Deuteranopia (green-blind)
#2F4B7E
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4f7f;
/* rgb */ color: rgb(46, 79, 127);
/* oklch */ color: oklch(42.7% 0.089 257.7);
Tailwind
colors: {
  custom: {
    50: '#6f80a4',
    500: '#2e4f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f7f;
$custom-light: #6f80a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f7f",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 127
  },
  "hsl": {
    "h": 215.556,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.08917,
    "h": 257.7
  },
  "luminance": 0.07705
}

Semantic roles & 50–950 ramp

primary
#2E4F7F
secondary
#AD8C5C
accent
#A051D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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