#2F4AB4#2F4AB4

#2F4AB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.171 H 268.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB4
RGBrgb(47, 74, 180)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(73.9%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.59, 27.46, -59.19)
CIE-LCHlch(35.59, 65.25, 294.89°)
OKLaboklab(45.52% -0.0061 -0.1708)
OKLCHoklch(45.52% 0.171 268)
XYZxyz(11.8564, 8.7959, 44.2441)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB4 #B4992F
analogous
#2F8CB4 #2F4AB4 #572FB4
triadic
#2F4AB4 #B42F4A #4AB42F
tetradic
#2F4AB4 #B42F8C #B4992F #2FB457
square
#2F4AB4 #B42F8C #B4992F #2FB457
split-complementary
#2F4AB4 #B4572F #8CB42F
monochromatic
#162253 #223683 #2F4AB4 #4F6AD1 #8093DE

Accessibility & contrast

On white

7.61
#2F4AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F4AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB4
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB4#FFFFFF#000000##FFFFFF
##2F4AB41.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ab4;
/* rgb */ color: rgb(47, 74, 180);
/* oklch */ color: oklch(45.5% 0.171 268.0);
Tailwind
colors: {
  custom: {
    50: '#7a7ccb',
    500: '#2f4ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab4;
$custom-light: #7a7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab4",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 227.82,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45515,
    "c": 0.17092,
    "h": 268
  },
  "luminance": 0.08797
}

Semantic roles & 50–950 ramp

primary
#2F4AB4
secondary
#C7B778
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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