#2F4EA5#2F4EA5

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

Color values

HEX#2F4EA5
RGBrgb(47, 78, 165)
HSLhsl(224, 56%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(71.5%, 52.7%, 0%, 35.3%)
CIE-LABlab(35.53, 19.19, -50.36)
CIE-LCHlch(35.53, 53.89, 290.86°)
OKLaboklab(45.12% -0.0102 -0.1448)
OKLCHoklch(45.12% 0.145 266)
XYZxyz(10.6858, 8.7686, 36.7194)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4EA5 #A5862F
analogous
#2F89A5 #2F4EA5 #4B2FA5
triadic
#2F4EA5 #A52F4E #4EA52F
tetradic
#2F4EA5 #A52F89 #A5862F #2FA54B
square
#2F4EA5 #A52F89 #A5862F #2FA54B
split-complementary
#2F4EA5 #A54B2F #89A52F
monochromatic
#142146 #213775 #2F4EA5 #4769CB #7690D8

Accessibility & contrast

On white

7.63
#2F4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F4EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4EA5
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4EA5#FFFFFF#000000##FFFFFF
##2F4EA51.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ea5;
/* rgb */ color: rgb(47, 78, 165);
/* oklch */ color: oklch(45.1% 0.145 266.0);
Tailwind
colors: {
  custom: {
    50: '#777fc0',
    500: '#2f4ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ea5;
$custom-light: #777fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ea5",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 224.237,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.14514,
    "h": 266
  },
  "luminance": 0.0877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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