#2F4F78#2F4F78

#2F4F78 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.3% C 0.079 H 255.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2F4F78
RGBrgb(47, 79, 120)
HSLhsl(214, 44%, 33%)
HSVhsv(214, 61%, 47%)
CMYKcmyk(60.8%, 34.2%, 0%, 52.9%)
CIE-LABlab(33.03, 1.75, -26.90)
CIE-LCHlch(33.03, 26.96, 273.72°)
OKLaboklab(42.29% -0.02 -0.076)
OKLCHoklch(42.29% 0.079 255.3)
XYZxyz(7.3572, 7.5517, 18.8356)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F78 #78582F
analogous
#2F7378 #2F4F78 #332F78
triadic
#2F4F78 #782F4F #4F782F
tetradic
#2F4F78 #782F73 #78582F #2F7833
square
#2F4F78 #782F73 #78582F #2F7833
split-complementary
#2F4F78 #78332F #73782F
monochromatic
#0D1520 #1E324C #2F4F78 #406CA4 #608BC1

Accessibility & contrast

On white

8.37
#2F4F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4F78
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F78#FFFFFF#000000##FFFFFF
##2F4F781.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4f78;
/* rgb */ color: rgb(47, 79, 120);
/* oklch */ color: oklch(42.3% 0.079 255.3);
Tailwind
colors: {
  custom: {
    50: '#6e809f',
    500: '#2f4f78',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f78;
$custom-light: #6e809f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f78",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 120
  },
  "hsl": {
    "h": 213.699,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42288,
    "c": 0.07854,
    "h": 255.3
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#2F4F78
secondary
#A8865B
accent
#9C54D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #2F4F78

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

Preview Lab → · Contrast checker → · Palette generator →

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