#2F4E87#2F4E87

#2F4E87 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.102 H 261.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F4E87
RGBrgb(47, 78, 135)
HSLhsl(219, 48%, 36%)
HSVhsv(219, 65%, 53%)
CMYKcmyk(65.2%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.57, 7.90, -35.33)
CIE-LCHlch(33.57, 36.20, 282.60°)
OKLaboklab(42.98% -0.0149 -0.1006)
OKLCHoklch(42.98% 0.102 261.6)
XYZxyz(8.2683, 7.8016, 23.9871)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E87 #87682F
analogous
#2F7A87 #2F4E87 #3C2F87
triadic
#2F4E87 #872F4E #4E872F
tetradic
#2F4E87 #872F7A #87682F #2F873C
square
#2F4E87 #872F7A #87682F #2F873C
split-complementary
#2F4E87 #873C2F #7A872F
monochromatic
#0F1A2C #1F345A #2F4E87 #3F68B4 #668ACA

Accessibility & contrast

On white

8.20
#2F4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E87
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E87#FFFFFF#000000##FFFFFF
##2F4E871.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#284B86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f4e87;
/* rgb */ color: rgb(47, 78, 135);
/* oklch */ color: oklch(43.0% 0.102 261.6);
Tailwind
colors: {
  custom: {
    50: '#717faa',
    500: '#2f4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e87;
$custom-light: #717faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e87",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 218.864,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42978,
    "c": 0.1017,
    "h": 261.6
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#2F4E87
secondary
#B19561
accent
#A850D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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