#2E4078#2E4078

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

Color values

HEX#2E4078
RGBrgb(46, 64, 120)
HSLhsl(225, 45%, 33%)
HSVhsv(225, 62%, 47%)
CMYKcmyk(61.7%, 46.7%, 0%, 52.9%)
CIE-LABlab(28.39, 11.55, -34.27)
CIE-LCHlch(28.39, 36.16, 288.62°)
OKLaboklab(38.68% -0.0031 -0.0977)
OKLCHoklch(38.68% 0.098 268.2)
XYZxyz(6.3491, 5.6032, 18.5126)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4078 #78662E
analogous
#2E6578 #2E4078 #412E78
triadic
#2E4078 #782E40 #40782E
tetradic
#2E4078 #782E65 #78662E #2E7841
square
#2E4078 #782E65 #78662E #2E7841
split-complementary
#2E4078 #78412E #65782E
monochromatic
#0C1120 #1D284C #2E4078 #3F58A4 #5F77C2

Accessibility & contrast

On white

9.90
#2E4078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E4078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4078
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4078#FFFFFF#000000##FFFFFF
##2E40781.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26467A
Deuteranopia (green-blind)
#1C4077
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e4078;
/* rgb */ color: rgb(46, 64, 120);
/* oklch */ color: oklch(38.7% 0.098 268.2);
Tailwind
colors: {
  custom: {
    50: '#6e749f',
    500: '#2e4078',
    950: '#000000',
  },
}
SCSS
$custom: #2e4078;
$custom-light: #6e749f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4078",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 120
  },
  "hsl": {
    "h": 225.405,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.09773,
    "h": 268.2
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#2E4078
secondary
#A8955A
accent
#B554D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #2E4078

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

Preview Lab → · Contrast checker → · Palette generator →

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