#2F4FB8#2F4FB8

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

Color values

HEX#2F4FB8
RGBrgb(47, 79, 184)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(74.5%, 57.1%, 0%, 27.8%)
CIE-LABlab(37.22, 25.68, -58.90)
CIE-LCHlch(37.22, 64.25, 293.55°)
OKLaboklab(46.83% -0.0097 -0.1699)
OKLCHoklch(46.83% 0.17 266.7)
XYZxyz(12.6170, 9.6556, 46.5369)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB8 #B8982F
analogous
#2F94B8 #2F4FB8 #532FB8
triadic
#2F4FB8 #B82F4F #4FB82F
tetradic
#2F4FB8 #B82F94 #B8982F #2FB853
square
#2F4FB8 #B82F94 #B8982F #2FB853
split-complementary
#2F4FB8 #B8532F #94B82F
monochromatic
#162557 #233A87 #2F4FB8 #5270D3 #8298DF

Accessibility & contrast

On white

7.16
#2F4FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2F4FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB8
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB8#FFFFFF#000000##FFFFFF
##2F4FB81.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fb8;
/* rgb */ color: rgb(47, 79, 184);
/* oklch */ color: oklch(46.8% 0.170 266.7);
Tailwind
colors: {
  custom: {
    50: '#7b7fce',
    500: '#2f4fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb8;
$custom-light: #7b7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb8",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 225.985,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46832,
    "c": 0.17015,
    "h": 266.7
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#2F4FB8
secondary
#C8B67B
accent
#BE45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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