#2F4FA8#2F4FA8

#2F4FA8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.148 H 265.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA8
RGBrgb(47, 79, 168)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 66%)
CMYKcmyk(72%, 53%, 0%, 34.1%)
CIE-LABlab(36.03, 19.66, -51.35)
CIE-LCHlch(36.03, 54.99, 290.94°)
OKLaboklab(45.56% -0.0108 -0.1477)
OKLCHoklch(45.56% 0.148 265.8)
XYZxyz(11.0337, 9.0223, 38.1982)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA8 #A8882F
analogous
#2F8CA8 #2F4FA8 #4B2FA8
triadic
#2F4FA8 #A82F4F #4FA82F
tetradic
#2F4FA8 #A82F8C #A8882F #2FA84B
square
#2F4FA8 #A82F8C #A8882F #2FA84B
split-complementary
#2F4FA8 #A84B2F #8CA82F
monochromatic
#142248 #223978 #2F4FA8 #486BCC #7892D9

Accessibility & contrast

On white

7.49
#2F4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA8#FFFFFF#000000##FFFFFF
##2F4FA81.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4fa8;
/* rgb */ color: rgb(47, 79, 168);
/* oklch */ color: oklch(45.6% 0.148 265.8);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2f4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa8;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa8",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 224.132,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45559,
    "c": 0.14808,
    "h": 265.8
  },
  "luminance": 0.09023
}

Semantic roles & 50–950 ramp

primary
#2F4FA8
secondary
#C1AC71
accent
#B848E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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