#2F4F86#2F4F86

#2F4F86 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.099 H 260.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2F4F86
RGBrgb(47, 79, 134)
HSLhsl(218, 48%, 35%)
HSVhsv(218, 65%, 53%)
CMYKcmyk(64.9%, 41%, 0%, 47.5%)
CIE-LABlab(33.81, 6.86, -34.33)
CIE-LCHlch(33.81, 35.01, 281.31°)
OKLaboklab(43.15% -0.0162 -0.0977)
OKLCHoklch(43.15% 0.099 260.6)
XYZxyz(8.2698, 7.9168, 23.6419)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F86 #86662F
analogous
#2F7A86 #2F4F86 #3A2F86
triadic
#2F4F86 #862F4F #4F862F
tetradic
#2F4F86 #862F7A #86662F #2F863A
square
#2F4F86 #862F7A #86662F #2F863A
split-complementary
#2F4F86 #863A2F #7A862F
monochromatic
#0F1A2B #1F3459 #2F4F86 #3F6AB3 #668BC9

Accessibility & contrast

On white

8.13
#2F4F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F4F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F86
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F86#FFFFFF#000000##FFFFFF
##2F4F861.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375488
Deuteranopia (green-blind)
#2A4C85
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4f86;
/* rgb */ color: rgb(47, 79, 134);
/* oklch */ color: oklch(43.1% 0.099 260.6);
Tailwind
colors: {
  custom: {
    50: '#707fa9',
    500: '#2f4f86',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f86;
$custom-light: #707fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f86",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 134
  },
  "hsl": {
    "h": 217.931,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43147,
    "c": 0.099,
    "h": 260.6
  },
  "luminance": 0.07918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4F86

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

Preview Lab → · Contrast checker → · Palette generator →

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