#2F5FA6#2F5FA6

#2F5FA6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.126 H 258.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA6
RGBrgb(47, 95, 166)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(71.7%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.48, 8.41, -43.01)
CIE-LCHlch(40.48, 43.83, 281.06°)
OKLaboklab(48.93% -0.0256 -0.1229)
OKLCHoklch(48.93% 0.126 258.2)
XYZxyz(12.1449, 11.5406, 37.6565)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA6 #A6762F
analogous
#2F9BA6 #2F5FA6 #3A2FA6
triadic
#2F5FA6 #A62F5F #5FA62F
tetradic
#2F5FA6 #A62F9B #A6762F #2FA63A
square
#2F5FA6 #A62F9B #A6762F #2FA63A
split-complementary
#2F5FA6 #A63A2F #9BA62F
monochromatic
#142847 #214476 #2F5FA6 #477CCB #779ED8

Accessibility & contrast

On white

6.35
#2F5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2F5FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA6
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA6#FFFFFF#000000##FFFFFF
##2F5FA61.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A9
Deuteranopia (green-blind)
#295AA5
Tritanopia (blue-blind)
#00707A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5fa6;
/* rgb */ color: rgb(47, 95, 166);
/* oklch */ color: oklch(48.9% 0.126 258.2);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2f5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa6;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa6",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 215.798,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48928,
    "c": 0.12554,
    "h": 258.2
  },
  "luminance": 0.11542
}

Semantic roles & 50–950 ramp

primary
#2F5FA6
secondary
#C1A070
accent
#A249DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2F5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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