#2F5178#2F5178

#2F5178 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.076 H 253.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2F5178
RGBrgb(47, 81, 120)
HSLhsl(212, 44%, 33%)
HSVhsv(212, 61%, 47%)
CMYKcmyk(60.8%, 32.5%, 0%, 52.9%)
CIE-LABlab(33.66, 0.45, -25.92)
CIE-LCHlch(33.66, 25.92, 271.01°)
OKLaboklab(42.78% -0.0224 -0.0731)
OKLCHoklch(42.78% 0.076 253)
XYZxyz(7.5037, 7.8446, 18.8844)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5178 #78562F
analogous
#2F7578 #2F5178 #312F78
triadic
#2F5178 #782F51 #51782F
tetradic
#2F5178 #782F75 #78562F #2F7831
square
#2F5178 #782F75 #78562F #2F7831
split-complementary
#2F5178 #78312F #75782F
monochromatic
#0D1620 #1E334C #2F5178 #406FA4 #608DC1

Accessibility & contrast

On white

8.17
#2F5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5178
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5178#FFFFFF#000000##FFFFFF
##2F51781.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.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: #2f5178;
/* rgb */ color: rgb(47, 81, 120);
/* oklch */ color: oklch(42.8% 0.076 253.0);
Tailwind
colors: {
  custom: {
    50: '#6e819f',
    500: '#2f5178',
    950: '#000000',
  },
}
SCSS
$custom: #2f5178;
$custom-light: #6e819f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5178",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 212.055,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.07644,
    "h": 253
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#2F5178
secondary
#A8845B
accent
#9854D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #2F5178

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

Preview Lab → · Contrast checker → · Palette generator →

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