#2F4EA6#2F4EA6

#2F4EA6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.147 H 266.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA6
RGBrgb(47, 78, 166)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(71.7%, 53%, 0%, 34.9%)
CIE-LABlab(35.61, 19.56, -50.84)
CIE-LCHlch(35.61, 54.47, 291.05°)
OKLaboklab(45.2% -0.0101 -0.1462)
OKLCHoklch(45.2% 0.147 266)
XYZxyz(10.7772, 8.8052, 37.2006)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA6 #A6872F
analogous
#2F8AA6 #2F4EA6 #4C2FA6
triadic
#2F4EA6 #A62F4E #4EA62F
tetradic
#2F4EA6 #A62F8A #A6872F #2FA64C
square
#2F4EA6 #A62F8A #A6872F #2FA64C
split-complementary
#2F4EA6 #A64C2F #8AA62F
monochromatic
#142147 #213876 #2F4EA6 #476ACB #7790D8

Accessibility & contrast

On white

7.61
#2F4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F4EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EA6
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA6#FFFFFF#000000##FFFFFF
##2F4EA61.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1359A9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ea6;
/* rgb */ color: rgb(47, 78, 166);
/* oklch */ color: oklch(45.2% 0.147 266.0);
Tailwind
colors: {
  custom: {
    50: '#777fc1',
    500: '#2f4ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea6;
$custom-light: #777fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea6",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 224.37,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45195,
    "c": 0.14655,
    "h": 266
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#2F4EA6
secondary
#C1AC70
accent
#B849DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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