#2F4D79#2F4D79

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

Color values

HEX#2F4D79
RGBrgb(47, 77, 121)
HSLhsl(216, 44%, 33%)
HSVhsv(216, 61%, 47%)
CMYKcmyk(61.2%, 36.4%, 0%, 52.5%)
CIE-LABlab(32.46, 3.41, -28.42)
CIE-LCHlch(32.46, 28.62, 276.85°)
OKLaboklab(41.86% -0.0173 -0.0804)
OKLCHoklch(41.86% 0.082 257.9)
XYZxyz(7.2761, 7.2919, 19.1095)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D79 #795B2F
analogous
#2F7279 #2F4D79 #362F79
triadic
#2F4D79 #792F4D #4D792F
tetradic
#2F4D79 #792F72 #795B2F #2F7936
square
#2F4D79 #792F72 #795B2F #2F7936
split-complementary
#2F4D79 #79362F #72792F
monochromatic
#0D1521 #1E314D #2F4D79 #4069A5 #6188C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4D79#FFFFFF#000000##FFFFFF
##2F4D791.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)
#3B507B
Deuteranopia (green-blind)
#314978
Tritanopia (blue-blind)
#00575D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4d79;
/* rgb */ color: rgb(47, 77, 121);
/* oklch */ color: oklch(41.9% 0.082 257.9);
Tailwind
colors: {
  custom: {
    50: '#6e7ea0',
    500: '#2f4d79',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d79;
$custom-light: #6e7ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d79",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 121
  },
  "hsl": {
    "h": 215.676,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.08223,
    "h": 257.9
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#2F4D79
secondary
#A8895B
accent
#A054D4
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #2F4D79

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

Preview Lab → · Contrast checker → · Palette generator →

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