#2E4878#2E4878

#2E4878 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.5% C 0.087 H 261.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2E4878
RGBrgb(46, 72, 120)
HSLhsl(219, 45%, 33%)
HSVhsv(219, 62%, 47%)
CMYKcmyk(61.7%, 40%, 0%, 52.9%)
CIE-LABlab(30.81, 6.14, -30.41)
CIE-LCHlch(30.81, 31.03, 281.41°)
OKLaboklab(40.54% -0.0125 -0.0863)
OKLCHoklch(40.54% 0.087 261.8)
XYZxyz(6.8331, 6.5711, 18.6739)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4878 #785E2E
analogous
#2E6D78 #2E4878 #392E78
triadic
#2E4878 #782E48 #48782E
tetradic
#2E4878 #782E6D #785E2E #2E7839
square
#2E4878 #782E6D #785E2E #2E7839
split-complementary
#2E4878 #78392E #6D782E
monochromatic
#0C1320 #1D2D4C #2E4878 #3F63A4 #5F82C2

Accessibility & contrast

On white

9.07
#2E4878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2E4878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4878
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4878#FFFFFF#000000##FFFFFF
##2E48781.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344C7A
Deuteranopia (green-blind)
#2A4577
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e4878;
/* rgb */ color: rgb(46, 72, 120);
/* oklch */ color: oklch(40.5% 0.087 261.8);
Tailwind
colors: {
  custom: {
    50: '#6e7a9f',
    500: '#2e4878',
    950: '#000000',
  },
}
SCSS
$custom: #2e4878;
$custom-light: #6e7a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4878",
  "rgb": {
    "r": 46,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 218.919,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40544,
    "c": 0.08719,
    "h": 261.8
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#2E4878
secondary
#A88D5A
accent
#A754D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2E4878

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

Preview Lab → · Contrast checker → · Palette generator →

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