#2F4EA7#2F4EA7

#2F4EA7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.148 H 266.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA7
RGBrgb(47, 78, 167)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 65%)
CMYKcmyk(71.9%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.68, 19.94, -51.32)
CIE-LCHlch(35.68, 55.06, 291.23°)
OKLaboklab(45.27% -0.01 -0.1476)
OKLCHoklch(45.27% 0.148 266.1)
XYZxyz(10.8693, 8.8420, 37.6856)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA7 #A7882F
analogous
#2F8AA7 #2F4EA7 #4C2FA7
triadic
#2F4EA7 #A72F4E #4EA72F
tetradic
#2F4EA7 #A72F8A #A7882F #2FA74C
square
#2F4EA7 #A72F8A #A7882F #2FA74C
split-complementary
#2F4EA7 #A74C2F #8AA72F
monochromatic
#142147 #223877 #2F4EA7 #486ACB #7891D9

Accessibility & contrast

On white

7.59
#2F4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F4EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EA7
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA7#FFFFFF#000000##FFFFFF
##2F4EA71.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ea7;
/* rgb */ color: rgb(47, 78, 167);
/* oklch */ color: oklch(45.3% 0.148 266.1);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2f4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea7;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea7",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 224.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45272,
    "c": 0.14796,
    "h": 266.1
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#2F4EA7
secondary
#C1AC71
accent
#B848DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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