#2E4F78#2E4F78

#2E4F78 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.079 H 254.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2E4F78
RGBrgb(46, 79, 120)
HSLhsl(213, 45%, 33%)
HSVhsv(213, 62%, 47%)
CMYKcmyk(61.7%, 34.2%, 0%, 52.9%)
CIE-LABlab(32.98, 1.53, -26.99)
CIE-LCHlch(32.98, 27.03, 273.24°)
OKLaboklab(42.23% -0.0209 -0.0762)
OKLCHoklch(42.23% 0.079 254.7)
XYZxyz(7.3117, 7.5282, 18.8334)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F78 #78572E
analogous
#2E7478 #2E4F78 #322E78
triadic
#2E4F78 #782E4F #4F782E
tetradic
#2E4F78 #782E74 #78572E #2E7832
square
#2E4F78 #782E74 #78572E #2E7832
split-complementary
#2E4F78 #78322E #74782E
monochromatic
#0C1520 #1D324C #2E4F78 #3F6CA4 #5F8BC2

Accessibility & contrast

On white

8.38
#2E4F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2E4F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F78
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F78#FFFFFF#000000##FFFFFF
##2E4F781.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E517A
Deuteranopia (green-blind)
#344A77
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4f78;
/* rgb */ color: rgb(46, 79, 120);
/* oklch */ color: oklch(42.2% 0.079 254.7);
Tailwind
colors: {
  custom: {
    50: '#6e809f',
    500: '#2e4f78',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f78;
$custom-light: #6e809f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f78",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 120
  },
  "hsl": {
    "h": 213.243,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42234,
    "c": 0.07902,
    "h": 254.7
  },
  "luminance": 0.07529
}

Semantic roles & 50–950 ramp

primary
#2E4F78
secondary
#A8855A
accent
#9B54D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2E4F78

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

Preview Lab → · Contrast checker → · Palette generator →

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