#2E4778#2E4778

#2E4778 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.088 H 262.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2E4778
RGBrgb(46, 71, 120)
HSLhsl(220, 45%, 33%)
HSVhsv(220, 62%, 47%)
CMYKcmyk(61.7%, 40.8%, 0%, 52.9%)
CIE-LABlab(30.50, 6.81, -30.90)
CIE-LCHlch(30.50, 31.64, 282.42°)
OKLaboklab(40.31% -0.0113 -0.0877)
OKLCHoklch(40.31% 0.088 262.6)
XYZxyz(6.7689, 6.4428, 18.6525)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4778 #785F2E
analogous
#2E6C78 #2E4778 #3A2E78
triadic
#2E4778 #782E47 #47782E
tetradic
#2E4778 #782E6C #785F2E #2E783A
square
#2E4778 #782E6C #785F2E #2E783A
split-complementary
#2E4778 #783A2E #6C782E
monochromatic
#0C1320 #1D2D4C #2E4778 #3F61A4 #5F80C2

Accessibility & contrast

On white

9.18
#2E4778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2E4778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4778
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4778#FFFFFF#000000##FFFFFF
##2E47781.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324B7A
Deuteranopia (green-blind)
#284577
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e4778;
/* rgb */ color: rgb(46, 71, 120);
/* oklch */ color: oklch(40.3% 0.088 262.6);
Tailwind
colors: {
  custom: {
    50: '#6e799f',
    500: '#2e4778',
    950: '#000000',
  },
}
SCSS
$custom: #2e4778;
$custom-light: #6e799f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4778",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 120
  },
  "hsl": {
    "h": 219.73,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40307,
    "c": 0.08845,
    "h": 262.6
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#2E4778
secondary
#A88E5A
accent
#A954D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2E4778

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

Preview Lab → · Contrast checker → · Palette generator →

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