#2F5EA7#2F5EA7

#2F5EA7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.128 H 259.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA7
RGBrgb(47, 94, 167)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 65%)
CMYKcmyk(71.9%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.24, 9.43, -43.98)
CIE-LCHlch(40.24, 44.98, 282.10°)
OKLaboklab(48.77% -0.0245 -0.1257)
OKLCHoklch(48.77% 0.128 259)
XYZxyz(12.1475, 11.3985, 38.1117)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA7 #A7782F
analogous
#2F9AA7 #2F5EA7 #3C2FA7
triadic
#2F5EA7 #A72F5E #5EA72F
tetradic
#2F5EA7 #A72F9A #A7782F #2FA73C
square
#2F5EA7 #A72F9A #A7782F #2FA73C
split-complementary
#2F5EA7 #A73C2F #9AA72F
monochromatic
#142847 #224377 #2F5EA7 #487BCB #789ED9

Accessibility & contrast

On white

6.40
#2F5EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2F5EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA7#FFFFFF#000000##FFFFFF
##2F5EA71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#255AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ea7;
/* rgb */ color: rgb(47, 94, 167);
/* oklch */ color: oklch(48.8% 0.128 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#2f5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea7;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea7",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 216.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48767,
    "c": 0.1281,
    "h": 259
  },
  "luminance": 0.114
}

Semantic roles & 50–950 ramp

primary
#2F5EA7
secondary
#C1A271
accent
#A448DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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