#2F4FB1#2F4FB1

#2F4FB1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.161 H 266.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB1
RGBrgb(47, 79, 177)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 73%, 69%)
CMYKcmyk(73.4%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.69, 23.05, -55.63)
CIE-LCHlch(36.69, 60.22, 292.50°)
OKLaboklab(46.27% -0.01 -0.1603)
OKLCHoklch(46.27% 0.161 266.4)
XYZxyz(11.9013, 9.3694, 42.7677)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB1 #B1912F
analogous
#2F90B1 #2F4FB1 #502FB1
triadic
#2F4FB1 #B12F4F #4FB12F
tetradic
#2F4FB1 #B12F90 #B1912F #2FB150
square
#2F4FB1 #B12F90 #B1912F #2FB150
split-complementary
#2F4FB1 #B1502F #90B12F
monochromatic
#152450 #223981 #2F4FB1 #4D6DD0 #7E95DD

Accessibility & contrast

On white

7.31
#2F4FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2F4FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB1#FFFFFF#000000##FFFFFF
##2F4FB11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f4fb1;
/* rgb */ color: rgb(47, 79, 177);
/* oklch */ color: oklch(46.3% 0.161 266.4);
Tailwind
colors: {
  custom: {
    50: '#797fc9',
    500: '#2f4fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb1;
$custom-light: #797fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb1",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 225.231,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46266,
    "c": 0.16059,
    "h": 266.4
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

primary
#2F4FB1
secondary
#C5B276
accent
#BB47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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