#2F4FA6#2F4FA6

#2F4FA6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.145 H 265.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA6
RGBrgb(47, 79, 166)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(71.7%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.88, 18.90, -50.39)
CIE-LCHlch(35.88, 53.82, 290.56°)
OKLaboklab(45.41% -0.011 -0.1449)
OKLCHoklch(45.41% 0.145 265.7)
XYZxyz(10.8488, 8.9484, 37.2245)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA6 #A6862F
analogous
#2F8BA6 #2F4FA6 #4B2FA6
triadic
#2F4FA6 #A62F4F #4FA62F
tetradic
#2F4FA6 #A62F8B #A6862F #2FA64B
square
#2F4FA6 #A62F8B #A6862F #2FA64B
split-complementary
#2F4FA6 #A64B2F #8BA62F
monochromatic
#142247 #213876 #2F4FA6 #476BCB #7791D8

Accessibility & contrast

On white

7.53
#2F4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F4FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA6
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA6#FFFFFF#000000##FFFFFF
##2F4FA61.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa6;
/* rgb */ color: rgb(47, 79, 166);
/* oklch */ color: oklch(45.4% 0.145 265.7);
Tailwind
colors: {
  custom: {
    50: '#777fc1',
    500: '#2f4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa6;
$custom-light: #777fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa6",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 223.866,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45406,
    "c": 0.14527,
    "h": 265.7
  },
  "luminance": 0.08949
}

Semantic roles & 50–950 ramp

primary
#2F4FA6
secondary
#C1AB70
accent
#B749DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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