#2F4E84#2F4E84

#2F4E84 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.097 H 260.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2F4E84
RGBrgb(47, 78, 132)
HSLhsl(218, 47%, 35%)
HSVhsv(218, 64%, 52%)
CMYKcmyk(64.4%, 40.9%, 0%, 48.2%)
CIE-LABlab(33.39, 6.79, -33.77)
CIE-LCHlch(33.39, 34.44, 281.36°)
OKLaboklab(42.78% -0.0156 -0.096)
OKLCHoklch(42.78% 0.097 260.8)
XYZxyz(8.0601, 7.7183, 22.8903)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E84 #84652F
analogous
#2F7884 #2F4E84 #3B2F84
triadic
#2F4E84 #842F4E #4E842F
tetradic
#2F4E84 #842F78 #84652F #2F843B
square
#2F4E84 #842F78 #84652F #2F843B
split-complementary
#2F4E84 #843B2F #78842F
monochromatic
#0F192A #1F3357 #2F4E84 #3F69B1 #6589C8

Accessibility & contrast

On white

8.26
#2F4E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F4E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E84
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E84#FFFFFF#000000##FFFFFF
##2F4E841.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365386
Deuteranopia (green-blind)
#2A4B83
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e84;
/* rgb */ color: rgb(47, 78, 132);
/* oklch */ color: oklch(42.8% 0.097 260.8);
Tailwind
colors: {
  custom: {
    50: '#707fa8',
    500: '#2f4e84',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e84;
$custom-light: #707fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e84",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 132
  },
  "hsl": {
    "h": 218.118,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42784,
    "c": 0.09728,
    "h": 260.8
  },
  "luminance": 0.07719
}

Semantic roles & 50–950 ramp

primary
#2F4E84
secondary
#AF9260
accent
#A651D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E84

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

Preview Lab → · Contrast checker → · Palette generator →

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