#2F4EA4#2F4EA4

#2F4EA4 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.144 H 265.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA4
RGBrgb(47, 78, 164)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(71.3%, 52.4%, 0%, 35.7%)
CIE-LABlab(35.46, 18.81, -49.87)
CIE-LCHlch(35.46, 53.30, 290.66°)
OKLaboklab(45.04% -0.0103 -0.1434)
OKLCHoklch(45.04% 0.144 265.9)
XYZxyz(10.5952, 8.7324, 36.2419)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA4 #A4852F
analogous
#2F89A4 #2F4EA4 #4B2FA4
triadic
#2F4EA4 #A42F4E #4EA42F
tetradic
#2F4EA4 #A42F89 #A4852F #2FA44B
square
#2F4EA4 #A42F89 #A4852F #2FA44B
split-complementary
#2F4EA4 #A44B2F #89A42F
monochromatic
#142145 #213774 #2F4EA4 #4669CA #7690D8

Accessibility & contrast

On white

7.65
#2F4EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EA4
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA4#FFFFFF#000000##FFFFFF
##2F4EA41.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f4ea4;
/* rgb */ color: rgb(47, 78, 164);
/* oklch */ color: oklch(45.0% 0.144 265.9);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#2f4ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea4;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea4",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 164
  },
  "hsl": {
    "h": 224.103,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45041,
    "c": 0.14373,
    "h": 265.9
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#2F4EA4
secondary
#C0AA6F
accent
#B749DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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