#2F4D84#2F4D84

#2F4D84 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.099 H 261.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2F4D84
RGBrgb(47, 77, 132)
HSLhsl(219, 47%, 35%)
HSVhsv(219, 64%, 52%)
CMYKcmyk(64.4%, 41.7%, 0%, 48.2%)
CIE-LABlab(33.09, 7.45, -34.25)
CIE-LCHlch(33.09, 35.05, 282.27°)
OKLaboklab(42.55% -0.0145 -0.0974)
OKLCHoklch(42.55% 0.099 261.5)
XYZxyz(7.9896, 7.5773, 22.8668)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D84 #84662F
analogous
#2F7784 #2F4D84 #3C2F84
triadic
#2F4D84 #842F4D #4D842F
tetradic
#2F4D84 #842F77 #84662F #2F843C
square
#2F4D84 #842F77 #84662F #2F843C
split-complementary
#2F4D84 #843C2F #77842F
monochromatic
#0F182A #1F3357 #2F4D84 #3F67B1 #6588C8

Accessibility & contrast

On white

8.35
#2F4D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F4D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D84
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D84#FFFFFF#000000##FFFFFF
##2F4D841.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355286
Deuteranopia (green-blind)
#294A83
Tritanopia (blue-blind)
#005962
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4d84;
/* rgb */ color: rgb(47, 77, 132);
/* oklch */ color: oklch(42.5% 0.099 261.5);
Tailwind
colors: {
  custom: {
    50: '#707ea8',
    500: '#2f4d84',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d84;
$custom-light: #707ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d84",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 132
  },
  "hsl": {
    "h": 218.824,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4255,
    "c": 0.09851,
    "h": 261.5
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#2F4D84
secondary
#AF9360
accent
#A851D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2F4D84

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

Preview Lab → · Contrast checker → · Palette generator →

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