#2E5178#2E5178

#2E5178 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.7% C 0.077 H 252.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#2E5178
RGBrgb(46, 81, 120)
HSLhsl(212, 45%, 33%)
HSVhsv(212, 62%, 47%)
CMYKcmyk(61.7%, 32.5%, 0%, 52.9%)
CIE-LABlab(33.61, 0.23, -26.00)
CIE-LCHlch(33.61, 26.00, 270.51°)
OKLaboklab(42.73% -0.0233 -0.0733)
OKLCHoklch(42.73% 0.077 252.4)
XYZxyz(7.4581, 7.8211, 18.8823)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5178 #78552E
analogous
#2E7678 #2E5178 #302E78
triadic
#2E5178 #782E51 #51782E
tetradic
#2E5178 #782E76 #78552E #2E7830
square
#2E5178 #782E76 #78552E #2E7830
split-complementary
#2E5178 #78302E #76782E
monochromatic
#0C1520 #1D334C #2E5178 #3F6FA4 #5F8EC2

Accessibility & contrast

On white

8.19
#2E5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5178
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5178#FFFFFF#000000##FFFFFF
##2E51781.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41537A
Deuteranopia (green-blind)
#374C77
Tritanopia (blue-blind)
#005A5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e5178;
/* rgb */ color: rgb(46, 81, 120);
/* oklch */ color: oklch(42.7% 0.077 252.4);
Tailwind
colors: {
  custom: {
    50: '#6e819f',
    500: '#2e5178',
    950: '#000000',
  },
}
SCSS
$custom: #2e5178;
$custom-light: #6e819f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5178",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 211.622,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42725,
    "c": 0.07695,
    "h": 252.4
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#2E5178
secondary
#A8835A
accent
#9754D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2E5178

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

Preview Lab → · Contrast checker → · Palette generator →

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