#2F4FA7#2F4FA7

#2F4FA7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.147 H 265.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA7
RGBrgb(47, 79, 167)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(71.9%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.96, 19.28, -50.87)
CIE-LCHlch(35.96, 54.40, 290.75°)
OKLaboklab(45.48% -0.0109 -0.1463)
OKLCHoklch(45.48% 0.147 265.8)
XYZxyz(10.9409, 8.9852, 37.7094)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA7 #A7872F
analogous
#2F8BA7 #2F4FA7 #4B2FA7
triadic
#2F4FA7 #A72F4F #4FA72F
tetradic
#2F4FA7 #A72F8B #A7872F #2FA74B
square
#2F4FA7 #A72F8B #A7872F #2FA74B
split-complementary
#2F4FA7 #A74B2F #8BA72F
monochromatic
#142247 #223877 #2F4FA7 #486BCB #7891D9

Accessibility & contrast

On white

7.51
#2F4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F4FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA7
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA7#FFFFFF#000000##FFFFFF
##2F4FA71.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4fa7;
/* rgb */ color: rgb(47, 79, 167);
/* oklch */ color: oklch(45.5% 0.147 265.8);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2f4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa7;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa7",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 224,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45482,
    "c": 0.14668,
    "h": 265.8
  },
  "luminance": 0.08986
}

Semantic roles & 50–950 ramp

primary
#2F4FA7
secondary
#C1AC71
accent
#B748DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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