#2F4E86#2F4E86

#2F4E86 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.100 H 261.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2F4E86
RGBrgb(47, 78, 134)
HSLhsl(219, 48%, 35%)
HSVhsv(219, 65%, 53%)
CMYKcmyk(64.9%, 41.8%, 0%, 47.5%)
CIE-LABlab(33.51, 7.53, -34.81)
CIE-LCHlch(33.51, 35.62, 282.20°)
OKLaboklab(42.91% -0.0151 -0.0991)
OKLCHoklch(42.91% 0.1 261.3)
XYZxyz(8.1982, 7.7736, 23.6180)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E86 #86672F
analogous
#2F7986 #2F4E86 #3C2F86
triadic
#2F4E86 #862F4E #4E862F
tetradic
#2F4E86 #862F79 #86672F #2F863C
square
#2F4E86 #862F79 #86672F #2F863C
split-complementary
#2F4E86 #863C2F #79862F
monochromatic
#0F192B #1F3459 #2F4E86 #3F68B3 #6689C9

Accessibility & contrast

On white

8.22
#2F4E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F4E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E86
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E86#FFFFFF#000000##FFFFFF
##2F4E861.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355388
Deuteranopia (green-blind)
#284B85
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e86;
/* rgb */ color: rgb(47, 78, 134);
/* oklch */ color: oklch(42.9% 0.100 261.3);
Tailwind
colors: {
  custom: {
    50: '#717fa9',
    500: '#2f4e86',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e86;
$custom-light: #717fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e86",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 218.621,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42913,
    "c": 0.10023,
    "h": 261.3
  },
  "luminance": 0.07774
}

Semantic roles & 50–950 ramp

primary
#2F4E86
secondary
#B09460
accent
#A750D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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