#2F4FB4#2F4FB4

#2F4FB4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.165 H 266.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2F4FB4
RGBrgb(47, 79, 180)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 71%)
CMYKcmyk(73.9%, 56.1%, 0%, 29.4%)
CIE-LABlab(36.91, 24.18, -57.04)
CIE-LCHlch(36.91, 61.95, 292.97°)
OKLaboklab(46.51% -0.0099 -0.1644)
OKLCHoklch(46.51% 0.165 266.6)
XYZxyz(12.2036, 9.4903, 44.3598)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FB4 #B4942F
analogous
#2F92B4 #2F4FB4 #522FB4
triadic
#2F4FB4 #B42F4F #4FB42F
tetradic
#2F4FB4 #B42F92 #B4942F #2FB452
square
#2F4FB4 #B42F92 #B4942F #2FB452
split-complementary
#2F4FB4 #B4522F #92B42F
monochromatic
#162453 #223A83 #2F4FB4 #4F6ED1 #8096DE

Accessibility & contrast

On white

7.25
#2F4FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2F4FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FB4
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FB4#FFFFFF#000000##FFFFFF
##2F4FB41.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4fb4;
/* rgb */ color: rgb(47, 79, 180);
/* oklch */ color: oklch(46.5% 0.165 266.6);
Tailwind
colors: {
  custom: {
    50: '#7a7fcb',
    500: '#2f4fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fb4;
$custom-light: #7a7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fb4",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 225.564,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.16472,
    "h": 266.6
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#2F4FB4
secondary
#C7B478
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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