#2F4FBC#2F4FBC

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

Color values

HEX#2F4FBC
RGBrgb(47, 79, 188)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 74%)
CMYKcmyk(75%, 58%, 0%, 26.3%)
CIE-LABlab(37.53, 27.17, -60.74)
CIE-LCHlch(37.53, 66.54, 294.10°)
OKLaboklab(47.16% -0.0095 -0.1753)
OKLCHoklch(47.16% 0.176 266.9)
XYZxyz(13.0422, 9.8257, 48.7764)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FBC #BC9C2F
analogous
#2F95BC #2F4FBC #552FBC
triadic
#2F4FBC #BC2F4F #4FBC2F
tetradic
#2F4FBC #BC2F95 #BC9C2F #2FBC55
square
#2F4FBC #BC2F95 #BC9C2F #2FBC55
split-complementary
#2F4FBC #BC552F #95BC2F
monochromatic
#17265A #233A8B #2F4FBC #5471D4 #859AE0

Accessibility & contrast

On white

7.08
#2F4FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4FBC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FBC#FFFFFF#000000##FFFFFF
##2F4FBC1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fbc;
/* rgb */ color: rgb(47, 79, 188);
/* oklch */ color: oklch(47.2% 0.176 266.9);
Tailwind
colors: {
  custom: {
    50: '#7c7fd1',
    500: '#2f4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fbc;
$custom-light: #7c7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fbc",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 226.383,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47162,
    "c": 0.17556,
    "h": 266.9
  },
  "luminance": 0.09827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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