#2F4F87#2F4F87

#2F4F87 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.100 H 260.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4F87
RGBrgb(47, 79, 135)
HSLhsl(218, 48%, 36%)
HSVhsv(218, 65%, 53%)
CMYKcmyk(65.2%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.87, 7.24, -34.85)
CIE-LCHlch(33.87, 35.60, 281.73°)
OKLaboklab(43.21% -0.016 -0.0992)
OKLCHoklch(43.21% 0.1 260.8)
XYZxyz(8.3399, 7.9448, 24.0110)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F87 #87672F
analogous
#2F7B87 #2F4F87 #3B2F87
triadic
#2F4F87 #872F4F #4F872F
tetradic
#2F4F87 #872F7B #87672F #2F873B
square
#2F4F87 #872F7B #87672F #2F873B
split-complementary
#2F4F87 #873B2F #7B872F
monochromatic
#0F1A2C #1F345A #2F4F87 #3F6AB4 #668BCA

Accessibility & contrast

On white

8.11
#2F4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F87
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F87#FFFFFF#000000##FFFFFF
##2F4F871.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f4f87;
/* rgb */ color: rgb(47, 79, 135);
/* oklch */ color: oklch(43.2% 0.100 260.8);
Tailwind
colors: {
  custom: {
    50: '#717faa',
    500: '#2f4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f87;
$custom-light: #717faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f87",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 218.182,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43212,
    "c": 0.10047,
    "h": 260.8
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#2F4F87
secondary
#B19461
accent
#A650D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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