#2F5EA6#2F5EA6

#2F5EA6 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.127 H 258.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA6
RGBrgb(47, 94, 166)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(71.7%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.18, 9.05, -43.48)
CIE-LCHlch(40.18, 44.41, 281.76°)
OKLaboklab(48.7% -0.0247 -0.1243)
OKLCHoklch(48.7% 0.127 258.8)
XYZxyz(12.0554, 11.3616, 37.6267)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA6 #A6772F
analogous
#2F9AA6 #2F5EA6 #3C2FA6
triadic
#2F5EA6 #A62F5E #5EA62F
tetradic
#2F5EA6 #A62F9A #A6772F #2FA63C
square
#2F5EA6 #A62F9A #A6772F #2FA63C
split-complementary
#2F5EA6 #A63C2F #9AA62F
monochromatic
#142847 #214376 #2F5EA6 #477BCB #779DD8

Accessibility & contrast

On white

6.42
#2F5EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F5EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA6
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA6#FFFFFF#000000##FFFFFF
##2F5EA61.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ea6;
/* rgb */ color: rgb(47, 94, 166);
/* oklch */ color: oklch(48.7% 0.127 258.8);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2f5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea6;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea6",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 216.303,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48701,
    "c": 0.12671,
    "h": 258.8
  },
  "luminance": 0.11363
}

Semantic roles & 50–950 ramp

primary
#2F5EA6
secondary
#C1A170
accent
#A449DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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