#2F4FA5#2F4FA5

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

Color values

HEX#2F4FA5
RGBrgb(47, 79, 165)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(71.5%, 52.1%, 0%, 35.3%)
CIE-LABlab(35.81, 18.52, -49.91)
CIE-LCHlch(35.81, 53.23, 290.36°)
OKLaboklab(45.33% -0.0111 -0.1434)
OKLCHoklch(45.33% 0.144 265.6)
XYZxyz(10.7574, 8.9118, 36.7432)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FA5 #A5852F
analogous
#2F8AA5 #2F4FA5 #4A2FA5
triadic
#2F4FA5 #A52F4F #4FA52F
tetradic
#2F4FA5 #A52F8A #A5852F #2FA54A
square
#2F4FA5 #A52F8A #A5852F #2FA54A
split-complementary
#2F4FA5 #A54A2F #8AA52F
monochromatic
#142146 #213875 #2F4FA5 #476ACB #7691D8

Accessibility & contrast

On white

7.55
#2F4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4FA5
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FA5#FFFFFF#000000##FFFFFF
##2F4FA51.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195AA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4fa5;
/* rgb */ color: rgb(47, 79, 165);
/* oklch */ color: oklch(45.3% 0.144 265.6);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#2f4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fa5;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fa5",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 223.729,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4533,
    "c": 0.14387,
    "h": 265.6
  },
  "luminance": 0.08913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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