#2E4079#2E4079

#2E4079 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.099 H 268.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2E4079
RGBrgb(46, 64, 121)
HSLhsl(226, 45%, 33%)
HSVhsv(226, 62%, 47%)
CMYKcmyk(62%, 47.1%, 0%, 52.5%)
CIE-LABlab(28.45, 11.92, -34.79)
CIE-LCHlch(28.45, 36.78, 288.90°)
OKLaboklab(38.75% -0.0029 -0.0992)
OKLCHoklch(38.75% 0.099 268.3)
XYZxyz(6.4101, 5.6276, 18.8339)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4079 #79672E
analogous
#2E6579 #2E4079 #412E79
triadic
#2E4079 #792E40 #40792E
tetradic
#2E4079 #792E65 #79672E #2E7941
square
#2E4079 #792E65 #79672E #2E7941
split-complementary
#2E4079 #79412E #65792E
monochromatic
#0C1120 #1D294D #2E4079 #3F57A5 #5F77C2

Accessibility & contrast

On white

9.88
#2E4079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E4079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4079
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4079#FFFFFF#000000##FFFFFF
##2E40791.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e4079;
/* rgb */ color: rgb(46, 64, 121);
/* oklch */ color: oklch(38.7% 0.099 268.3);
Tailwind
colors: {
  custom: {
    50: '#6e74a0',
    500: '#2e4079',
    950: '#000000',
  },
}
SCSS
$custom: #2e4079;
$custom-light: #6e74a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4079",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 121
  },
  "hsl": {
    "h": 225.6,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.09927,
    "h": 268.3
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#2E4079
secondary
#A9965A
accent
#B653D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2E4079

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

Preview Lab → · Contrast checker → · Palette generator →

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