#2F4EA8#2F4EA8

#2F4EA8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.149 H 266.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2F4EA8
RGBrgb(47, 78, 168)
HSLhsl(225, 56%, 42%)
HSVhsv(225, 72%, 66%)
CMYKcmyk(72%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.75, 20.32, -51.80)
CIE-LCHlch(35.75, 55.64, 291.42°)
OKLaboklab(45.35% -0.0099 -0.149)
OKLCHoklch(45.35% 0.149 266.2)
XYZxyz(10.9621, 8.8791, 38.1743)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA8 #A8892F
analogous
#2F8BA8 #2F4EA8 #4D2FA8
triadic
#2F4EA8 #A82F4E #4EA82F
tetradic
#2F4EA8 #A82F8B #A8892F #2FA84D
square
#2F4EA8 #A82F8B #A8892F #2FA84D
split-complementary
#2F4EA8 #A84D2F #8BA82F
monochromatic
#142248 #223878 #2F4EA8 #486ACC #7891D9

Accessibility & contrast

On white

7.56
#2F4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4EA8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA8#FFFFFF#000000##FFFFFF
##2F4EA81.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ea8;
/* rgb */ color: rgb(47, 78, 168);
/* oklch */ color: oklch(45.4% 0.149 266.2);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2f4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea8;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea8",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 224.628,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4535,
    "c": 0.14936,
    "h": 266.2
  },
  "luminance": 0.0888
}

Semantic roles & 50–950 ramp

primary
#2F4EA8
secondary
#C1AD71
accent
#B948E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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