#2F4FBD#2F4FBD

#2F4FBD is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.177 H 266.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2F4FBD
RGBrgb(47, 79, 189)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 74%)
CMYKcmyk(75.1%, 58.2%, 0%, 25.9%)
CIE-LABlab(37.61, 27.54, -61.20)
CIE-LCHlch(37.61, 67.11, 294.23°)
OKLaboklab(47.25% -0.0095 -0.1766)
OKLCHoklch(47.25% 0.177 266.9)
XYZxyz(13.1504, 9.8690, 49.3461)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FBD #BD9D2F
analogous
#2F96BD #2F4FBD #562FBD
triadic
#2F4FBD #BD2F4F #4FBD2F
tetradic
#2F4FBD #BD2F96 #BD9D2F #2FBD56
square
#2F4FBD #BD2F96 #BD9D2F #2FBD56
split-complementary
#2F4FBD #BD562F #96BD2F
monochromatic
#17265B #233B8C #2F4FBD #5571D5 #869AE1

Accessibility & contrast

On white

7.06
#2F4FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2F4FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FBD
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FBD#FFFFFF#000000##FFFFFF
##2F4FBD1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fbd;
/* rgb */ color: rgb(47, 79, 189);
/* oklch */ color: oklch(47.2% 0.177 266.9);
Tailwind
colors: {
  custom: {
    50: '#7c7fd2',
    500: '#2f4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fbd;
$custom-light: #7c7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fbd",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 226.479,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47246,
    "c": 0.1769,
    "h": 266.9
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#2F4FBD
secondary
#CAB97E
accent
#C044E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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