#2D4F78#2D4F78

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

Color values

HEX#2D4F78
RGBrgb(45, 79, 120)
HSLhsl(213, 45%, 32%)
HSVhsv(213, 63%, 47%)
CMYKcmyk(62.5%, 34.2%, 0%, 52.9%)
CIE-LABlab(32.93, 1.31, -27.07)
CIE-LCHlch(32.93, 27.10, 272.77°)
OKLaboklab(42.18% -0.0218 -0.0765)
OKLCHoklch(42.18% 0.08 254.1)
XYZxyz(7.2671, 7.5053, 18.8314)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F78 #78562D
analogous
#2D7578 #2D4F78 #302D78
triadic
#2D4F78 #782D4F #4F782D
tetradic
#2D4F78 #782D75 #78562D #2D7830
square
#2D4F78 #782D75 #78562D #2D7830
split-complementary
#2D4F78 #78302D #75782D
monochromatic
#0C141F #1C324B #2D4F78 #3E6CA5 #5D8BC2

Accessibility & contrast

On white

8.40
#2D4F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2D4F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F78
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F78#FFFFFF#000000##FFFFFF
##2D4F781.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4f78;
/* rgb */ color: rgb(45, 79, 120);
/* oklch */ color: oklch(42.2% 0.080 254.1);
Tailwind
colors: {
  custom: {
    50: '#6d809f',
    500: '#2d4f78',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f78;
$custom-light: #6d809f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f78",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 120
  },
  "hsl": {
    "h": 212.8,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.07952,
    "h": 254.1
  },
  "luminance": 0.07506
}

Semantic roles & 50–950 ramp

primary
#2D4F78
secondary
#A98458
accent
#9A53D5
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2D4F78

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

Preview Lab → · Contrast checker → · Palette generator →

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