#2F4FB7#2F4FB7

#2F4FB7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.169 H 266.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB7
RGBrgb(47, 79, 183)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(74.3%, 56.8%, 0%, 28.2%)
CIE-LABlab(37.14, 25.30, -58.44)
CIE-LCHlch(37.14, 63.68, 293.41°)
OKLaboklab(46.75% -0.0097 -0.1685)
OKLCHoklch(46.75% 0.169 266.7)
XYZxyz(12.5125, 9.6138, 45.9868)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB7 #B7972F
analogous
#2F93B7 #2F4FB7 #532FB7
triadic
#2F4FB7 #B72F4F #4FB72F
tetradic
#2F4FB7 #B72F93 #B7972F #2FB753
square
#2F4FB7 #B72F93 #B7972F #2FB753
split-complementary
#2F4FB7 #B7532F #93B72F
monochromatic
#162556 #223A86 #2F4FB7 #516FD2 #8298DF

Accessibility & contrast

On white

7.18
#2F4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F4FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB7#FFFFFF#000000##FFFFFF
##2F4FB71.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4fb7;
/* rgb */ color: rgb(47, 79, 183);
/* oklch */ color: oklch(46.8% 0.169 266.7);
Tailwind
colors: {
  custom: {
    50: '#7b7fcd',
    500: '#2f4fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb7;
$custom-light: #7b7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb7",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 225.882,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4675,
    "c": 0.1688,
    "h": 266.7
  },
  "luminance": 0.09615
}

Semantic roles & 50–950 ramp

primary
#2F4FB7
secondary
#C8B67A
accent
#BD45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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