#2F4FB9#2F4FB9

#2F4FB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.172 H 266.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB9
RGBrgb(47, 79, 185)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 75%, 73%)
CMYKcmyk(74.6%, 57.3%, 0%, 27.5%)
CIE-LABlab(37.29, 26.05, -59.36)
CIE-LCHlch(37.29, 64.83, 293.69°)
OKLaboklab(46.91% -0.0096 -0.1712)
OKLCHoklch(46.91% 0.172 266.8)
XYZxyz(12.7222, 9.6977, 47.0909)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB9 #B9992F
analogous
#2F94B9 #2F4FB9 #542FB9
triadic
#2F4FB9 #B92F4F #4FB92F
tetradic
#2F4FB9 #B92F94 #B9992F #2FB954
square
#2F4FB9 #B92F94 #B9992F #2FB954
split-complementary
#2F4FB9 #B9542F #94B92F
monochromatic
#162557 #233A88 #2F4FB9 #5270D3 #8398DF

Accessibility & contrast

On white

7.14
#2F4FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F4FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB9
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB9#FFFFFF#000000##FFFFFF
##2F4FB91.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f4fb9;
/* rgb */ color: rgb(47, 79, 185);
/* oklch */ color: oklch(46.9% 0.172 266.8);
Tailwind
colors: {
  custom: {
    50: '#7b7fcf',
    500: '#2f4fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb9;
$custom-light: #7b7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb9",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 226.087,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46914,
    "c": 0.17151,
    "h": 266.8
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#2F4FB9
secondary
#C9B77B
accent
#BE45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F4FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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