#2F4F7E#2F4F7E

#2F4F7E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.6% C 0.087 H 257.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2F4F7E
RGBrgb(47, 79, 126)
HSLhsl(216, 46%, 34%)
HSVhsv(216, 63%, 49%)
CMYKcmyk(62.7%, 37.3%, 0%, 50.6%)
CIE-LABlab(33.35, 3.92, -30.12)
CIE-LCHlch(33.35, 30.37, 277.42°)
OKLaboklab(42.65% -0.0183 -0.0853)
OKLCHoklch(42.65% 0.087 257.9)
XYZxyz(7.7328, 7.7020, 20.8137)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4F7E #7E5E2F
analogous
#2F777E #2F4F7E #372F7E
triadic
#2F4F7E #7E2F4F #4F7E2F
tetradic
#2F4F7E #7E2F77 #7E5E2F #2F7E37
square
#2F4F7E #7E2F77 #7E5E2F #2F7E37
split-complementary
#2F4F7E #7E372F #777E2F
monochromatic
#0E1725 #1E3351 #2F4F7E #406BAB #638AC5

Accessibility & contrast

On white

8.27
#2F4F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F4F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4F7E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4F7E#FFFFFF#000000##FFFFFF
##2F4F7E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5280
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f4f7e;
/* rgb */ color: rgb(47, 79, 126);
/* oklch */ color: oklch(42.6% 0.087 257.9);
Tailwind
colors: {
  custom: {
    50: '#6f80a3',
    500: '#2f4f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f4f7e;
$custom-light: #6f80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4f7e",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 126
  },
  "hsl": {
    "h": 215.696,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.08726,
    "h": 257.9
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#2F4F7E
secondary
#AC8C5D
accent
#A052D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F4F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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