#2F4FB5#2F4FB5

#2F4FB5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.166 H 266.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB5
RGBrgb(47, 79, 181)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 71%)
CMYKcmyk(74%, 56.4%, 0%, 29%)
CIE-LABlab(36.99, 24.55, -57.51)
CIE-LCHlch(36.99, 62.53, 293.12°)
OKLaboklab(46.59% -0.0098 -0.1658)
OKLCHoklch(46.59% 0.166 266.6)
XYZxyz(12.3058, 9.5312, 44.8983)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB5 #B5952F
analogous
#2F92B5 #2F4FB5 #522FB5
triadic
#2F4FB5 #B52F4F #4FB52F
tetradic
#2F4FB5 #B52F92 #B5952F #2FB552
square
#2F4FB5 #B52F92 #B5952F #2FB552
split-complementary
#2F4FB5 #B5522F #92B52F
monochromatic
#162554 #223A84 #2F4FB5 #506FD1 #8097DE

Accessibility & contrast

On white

7.23
#2F4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F4FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB5
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB5#FFFFFF#000000##FFFFFF
##2F4FB51.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4fb5;
/* rgb */ color: rgb(47, 79, 181);
/* oklch */ color: oklch(46.6% 0.166 266.6);
Tailwind
colors: {
  custom: {
    50: '#7a7fcc',
    500: '#2f4fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb5;
$custom-light: #7a7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb5",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 225.672,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.16608,
    "h": 266.6
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#2F4FB5
secondary
#C7B479
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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