#2F4FA4#2F4FA4

#2F4FA4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.142 H 265.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4FA4
RGBrgb(47, 79, 164)
HSLhsl(224, 55%, 41%)
HSVhsv(224, 71%, 64%)
CMYKcmyk(71.3%, 51.8%, 0%, 35.7%)
CIE-LABlab(35.74, 18.14, -49.42)
CIE-LCHlch(35.74, 52.65, 290.16°)
OKLaboklab(45.25% -0.0112 -0.142)
OKLCHoklch(45.25% 0.142 265.5)
XYZxyz(10.6668, 8.8755, 36.2658)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA4 #A4842F
analogous
#2F8AA4 #2F4FA4 #4A2FA4
triadic
#2F4FA4 #A42F4F #4FA42F
tetradic
#2F4FA4 #A42F8A #A4842F #2FA44A
square
#2F4FA4 #A42F8A #A4842F #2FA44A
split-complementary
#2F4FA4 #A44A2F #8AA42F
monochromatic
#142145 #213874 #2F4FA4 #466ACA #7691D8

Accessibility & contrast

On white

7.57
#2F4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2F4FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FA4
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA4#FFFFFF#000000##FFFFFF
##2F4FA41.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa4;
/* rgb */ color: rgb(47, 79, 164);
/* oklch */ color: oklch(45.3% 0.142 265.5);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#2f4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa4;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa4",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 223.59,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45254,
    "c": 0.14245,
    "h": 265.5
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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