#2F4FBB#2F4FBB

#2F4FBB is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.174 H 266.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2F4FBB
RGBrgb(47, 79, 187)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 73%)
CMYKcmyk(74.9%, 57.8%, 0%, 26.7%)
CIE-LABlab(37.45, 26.80, -60.28)
CIE-LCHlch(37.45, 65.97, 293.97°)
OKLaboklab(47.08% -0.0095 -0.1739)
OKLCHoklch(47.08% 0.174 266.9)
XYZxyz(12.9348, 9.7827, 48.2106)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FBB #BB9B2F
analogous
#2F95BB #2F4FBB #552FBB
triadic
#2F4FBB #BB2F4F #4FBB2F
tetradic
#2F4FBB #BB2F95 #BB9B2F #2FBB55
square
#2F4FBB #BB2F95 #BB9B2F #2FBB55
split-complementary
#2F4FBB #BB552F #95BB2F
monochromatic
#162659 #233A8A #2F4FBB #5371D4 #8499E0

Accessibility & contrast

On white

7.10
#2F4FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2F4FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FBB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FBB#FFFFFF#000000##FFFFFF
##2F4FBB1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fbb;
/* rgb */ color: rgb(47, 79, 187);
/* oklch */ color: oklch(47.1% 0.174 266.9);
Tailwind
colors: {
  custom: {
    50: '#7c7fd0',
    500: '#2f4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fbb;
$custom-light: #7c7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fbb",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 226.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4708,
    "c": 0.17421,
    "h": 266.9
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#2F4FBB
secondary
#C9B87C
accent
#BF45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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