#2F4E82#2F4E82

#2F4E82 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.094 H 260.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2F4E82
RGBrgb(47, 78, 130)
HSLhsl(218, 47%, 35%)
HSVhsv(218, 64%, 51%)
CMYKcmyk(63.8%, 40%, 0%, 49%)
CIE-LABlab(33.27, 6.05, -32.72)
CIE-LCHlch(33.27, 33.27, 280.47°)
OKLaboklab(42.66% -0.0161 -0.0929)
OKLCHoklch(42.66% 0.094 260.2)
XYZxyz(7.9245, 7.6641, 22.1765)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E82 #82632F
analogous
#2F7882 #2F4E82 #392F82
triadic
#2F4E82 #822F4E #4E822F
tetradic
#2F4E82 #822F78 #82632F #2F8239
square
#2F4E82 #822F78 #82632F #2F8239
split-complementary
#2F4E82 #82392F #78822F
monochromatic
#0E1828 #1F3355 #2F4E82 #3F69AF #6489C7

Accessibility & contrast

On white

8.29
#2F4E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F4E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E82
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E82#FFFFFF#000000##FFFFFF
##2F4E821.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375284
Deuteranopia (green-blind)
#2C4B81
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4e82;
/* rgb */ color: rgb(47, 78, 130);
/* oklch */ color: oklch(42.7% 0.094 260.2);
Tailwind
colors: {
  custom: {
    50: '#707fa6',
    500: '#2f4e82',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e82;
$custom-light: #707fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e82",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 130
  },
  "hsl": {
    "h": 217.59,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.09433,
    "h": 260.2
  },
  "luminance": 0.07665
}

Semantic roles & 50–950 ramp

primary
#2F4E82
secondary
#AE905F
accent
#A551D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4E82

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

Preview Lab → · Contrast checker → · Palette generator →

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