#2E4979#2E4979

#2E4979 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.087 H 261.2°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2E4979
RGBrgb(46, 73, 121)
HSLhsl(218, 45%, 33%)
HSVhsv(218, 62%, 47%)
CMYKcmyk(62%, 39.7%, 0%, 52.5%)
CIE-LABlab(31.17, 5.84, -30.46)
CIE-LCHlch(31.17, 31.01, 280.85°)
OKLaboklab(40.85% -0.0134 -0.0864)
OKLCHoklch(40.85% 0.087 261.2)
XYZxyz(6.9592, 6.7258, 19.0169)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4979 #795E2E
analogous
#2E6E79 #2E4979 #382E79
triadic
#2E4979 #792E49 #49792E
tetradic
#2E4979 #792E6E #795E2E #2E7938
square
#2E4979 #792E6E #795E2E #2E7938
split-complementary
#2E4979 #79382E #6E792E
monochromatic
#0C1320 #1D2E4D #2E4979 #3F64A5 #5F83C2

Accessibility & contrast

On white

8.95
#2E4979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2E4979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4979
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4979#FFFFFF#000000##FFFFFF
##2E49791.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D7B
Deuteranopia (green-blind)
#2B4678
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e4979;
/* rgb */ color: rgb(46, 73, 121);
/* oklch */ color: oklch(40.8% 0.087 261.2);
Tailwind
colors: {
  custom: {
    50: '#6e7ba0',
    500: '#2e4979',
    950: '#000000',
  },
}
SCSS
$custom: #2e4979;
$custom-light: #6e7ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4979",
  "rgb": {
    "r": 46,
    "g": 73,
    "b": 121
  },
  "hsl": {
    "h": 218.4,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.08746,
    "h": 261.2
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#2E4979
secondary
#A98C5A
accent
#A653D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #2E4979

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

Preview Lab → · Contrast checker → · Palette generator →

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