#2F4FAA#2F4FAA

#2F4FAA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.7% C 0.151 H 266.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2F4FAA
RGBrgb(47, 79, 170)
HSLhsl(224, 57%, 43%)
HSVhsv(224, 72%, 67%)
CMYKcmyk(72.4%, 53.5%, 0%, 33.3%)
CIE-LABlab(36.17, 20.41, -52.31)
CIE-LCHlch(36.17, 56.15, 291.31°)
OKLaboklab(45.71% -0.0106 -0.1505)
OKLCHoklch(45.71% 0.151 266)
XYZxyz(11.2214, 9.0974, 39.1870)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FAA #AA8A2F
analogous
#2F8DAA #2F4FAA #4C2FAA
triadic
#2F4FAA #AA2F4F #4FAA2F
tetradic
#2F4FAA #AA2F8D #AA8A2F #2FAA4C
square
#2F4FAA #AA2F8D #AA8A2F #2FAA4C
split-complementary
#2F4FAA #AA4C2F #8DAA2F
monochromatic
#14224A #22397A #2F4FAA #496CCD #7993DA

Accessibility & contrast

On white

7.45
#2F4FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2F4FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4FAA
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FAA#FFFFFF#000000##FFFFFF
##2F4FAA1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5BAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4faa;
/* rgb */ color: rgb(47, 79, 170);
/* oklch */ color: oklch(45.7% 0.151 266.0);
Tailwind
colors: {
  custom: {
    50: '#787fc4',
    500: '#2f4faa',
    950: '#000000',
  },
}
SCSS
$custom: #2f4faa;
$custom-light: #787fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4faa",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 170
  },
  "hsl": {
    "h": 224.39,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45714,
    "c": 0.15088,
    "h": 266
  },
  "luminance": 0.09099
}

Semantic roles & 50–950 ramp

primary
#2F4FAA
secondary
#C2AE72
accent
#B848E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F4FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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