#2F4D82#2F4D82

#2F4D82 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.096 H 261.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2F4D82
RGBrgb(47, 77, 130)
HSLhsl(218, 47%, 35%)
HSVhsv(218, 64%, 51%)
CMYKcmyk(63.8%, 40.8%, 0%, 49%)
CIE-LABlab(32.97, 6.71, -33.20)
CIE-LCHlch(32.97, 33.87, 281.42°)
OKLaboklab(42.42% -0.0149 -0.0944)
OKLCHoklch(42.42% 0.096 261)
XYZxyz(7.8540, 7.5231, 22.1530)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D82 #82642F
analogous
#2F7782 #2F4D82 #3A2F82
triadic
#2F4D82 #822F4D #4D822F
tetradic
#2F4D82 #822F77 #82642F #2F823A
square
#2F4D82 #822F77 #82642F #2F823A
split-complementary
#2F4D82 #823A2F #77822F
monochromatic
#0E1828 #1F3255 #2F4D82 #3F68AF #6488C7

Accessibility & contrast

On white

8.38
#2F4D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F4D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D82
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D82#FFFFFF#000000##FFFFFF
##2F4D821.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365284
Deuteranopia (green-blind)
#2A4A81
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4d82;
/* rgb */ color: rgb(47, 77, 130);
/* oklch */ color: oklch(42.4% 0.096 261.0);
Tailwind
colors: {
  custom: {
    50: '#707ea6',
    500: '#2f4d82',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d82;
$custom-light: #707ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d82",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 130
  },
  "hsl": {
    "h": 218.313,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.09555,
    "h": 261
  },
  "luminance": 0.07524
}

Semantic roles & 50–950 ramp

primary
#2F4D82
secondary
#AE915F
accent
#A651D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4D82

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

Preview Lab → · Contrast checker → · Palette generator →

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