#2F5FA7#2F5FA7

#2F5FA7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.127 H 258.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA7
RGBrgb(47, 95, 167)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(71.9%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.54, 8.78, -43.51)
CIE-LCHlch(40.54, 44.39, 281.41°)
OKLaboklab(48.99% -0.0254 -0.1243)
OKLCHoklch(48.99% 0.127 258.4)
XYZxyz(12.2370, 11.5775, 38.1415)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA7 #A7772F
analogous
#2F9BA7 #2F5FA7 #3B2FA7
triadic
#2F5FA7 #A72F5F #5FA72F
tetradic
#2F5FA7 #A72F9B #A7772F #2FA73B
square
#2F5FA7 #A72F9B #A7772F #2FA73B
split-complementary
#2F5FA7 #A73B2F #9BA72F
monochromatic
#142947 #224477 #2F5FA7 #487CCB #789ED9

Accessibility & contrast

On white

6.33
#2F5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2F5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA7
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA7#FFFFFF#000000##FFFFFF
##2F5FA71.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AA
Deuteranopia (green-blind)
#285AA6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5fa7;
/* rgb */ color: rgb(47, 95, 167);
/* oklch */ color: oklch(49.0% 0.127 258.4);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#2f5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa7;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa7",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 216,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48994,
    "c": 0.12691,
    "h": 258.4
  },
  "luminance": 0.11579
}

Semantic roles & 50–950 ramp

primary
#2F5FA7
secondary
#C1A171
accent
#A348DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2F5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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