#2A4E78#2A4E78

#2A4E78 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.8% C 0.082 H 253.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2A4E78
RGBrgb(42, 78, 120)
HSLhsl(212, 48%, 32%)
HSVhsv(212, 65%, 47%)
CMYKcmyk(65%, 35%, 0%, 52.9%)
CIE-LABlab(32.47, 1.33, -27.80)
CIE-LCHlch(32.47, 27.83, 272.74°)
OKLaboklab(41.78% -0.0233 -0.0787)
OKLCHoklch(41.78% 0.082 253.5)
XYZxyz(7.0682, 7.2964, 18.8015)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E78 #78542A
analogous
#2A7578 #2A4E78 #2D2A78
triadic
#2A4E78 #782A4E #4E782A
tetradic
#2A4E78 #782A75 #78542A #2A782D
square
#2A4E78 #782A75 #78542A #2A782D
split-complementary
#2A4E78 #782D2A #75782A
monochromatic
#0A131D #1A314B #2A4E78 #3A6BA5 #588AC5

Accessibility & contrast

On white

8.54
#2A4E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2A4E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E78
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E78#FFFFFF#000000##FFFFFF
##2A4E781.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C507A
Deuteranopia (green-blind)
#314977
Tritanopia (blue-blind)
#00585D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4e78;
/* rgb */ color: rgb(42, 78, 120);
/* oklch */ color: oklch(41.8% 0.082 253.5);
Tailwind
colors: {
  custom: {
    50: '#6c7f9f',
    500: '#2a4e78',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e78;
$custom-light: #6c7f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e78",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 120
  },
  "hsl": {
    "h": 212.308,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.08203,
    "h": 253.5
  },
  "luminance": 0.07297
}

Semantic roles & 50–950 ramp

primary
#2A4E78
secondary
#AA8254
accent
#9950D8
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2A4E78

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

Preview Lab → · Contrast checker → · Palette generator →

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