#2F4AA4#2F4AA4

#2F4AA4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.149 H 267.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2F4AA4
RGBrgb(47, 74, 164)
HSLhsl(226, 55%, 41%)
HSVhsv(226, 71%, 64%)
CMYKcmyk(71.3%, 54.9%, 0%, 35.7%)
CIE-LABlab(34.36, 21.47, -51.66)
CIE-LCHlch(34.36, 55.95, 292.57°)
OKLaboklab(44.21% -0.0068 -0.1487)
OKLCHoklch(44.21% 0.149 267.4)
XYZxyz(10.3196, 8.1812, 36.1500)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AA4 #A4892F
analogous
#2F85A4 #2F4AA4 #4F2FA4
triadic
#2F4AA4 #A42F4A #4AA42F
tetradic
#2F4AA4 #A42F85 #A4892F #2FA44F
square
#2F4AA4 #A42F85 #A4892F #2FA44F
split-complementary
#2F4AA4 #A44F2F #85A42F
monochromatic
#141F45 #213574 #2F4AA4 #4665CA #768CD8

Accessibility & contrast

On white

7.97
#2F4AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F4AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AA4
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AA4#FFFFFF#000000##FFFFFF
##2F4AA41.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0156A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f4aa4;
/* rgb */ color: rgb(47, 74, 164);
/* oklch */ color: oklch(44.2% 0.149 267.4);
Tailwind
colors: {
  custom: {
    50: '#777cc0',
    500: '#2f4aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aa4;
$custom-light: #777cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aa4",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 226.154,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44205,
    "c": 0.14885,
    "h": 267.4
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#2F4AA4
secondary
#C0AD6F
accent
#BC49DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F4AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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