#2F5FA5#2F5FA5

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

Color values

HEX#2F5FA5
RGBrgb(47, 95, 165)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(71.5%, 42.4%, 0%, 35.3%)
CIE-LABlab(40.42, 8.03, -42.51)
CIE-LCHlch(40.42, 43.27, 280.70°)
OKLaboklab(48.86% -0.0258 -0.1214)
OKLCHoklch(48.86% 0.124 258)
XYZxyz(12.0536, 11.5041, 37.1753)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA5 #A5752F
analogous
#2F9AA5 #2F5FA5 #3A2FA5
triadic
#2F5FA5 #A52F5F #5FA52F
tetradic
#2F5FA5 #A52F9A #A5752F #2FA53A
square
#2F5FA5 #A52F9A #A5752F #2FA53A
split-complementary
#2F5FA5 #A53A2F #9AA52F
monochromatic
#142846 #214475 #2F5FA5 #477CCB #769ED8

Accessibility & contrast

On white

6.36
#2F5FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2F5FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA5
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA5#FFFFFF#000000##FFFFFF
##2F5FA51.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A8
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5fa5;
/* rgb */ color: rgb(47, 95, 165);
/* oklch */ color: oklch(48.9% 0.124 258.0);
Tailwind
colors: {
  custom: {
    50: '#768bc0',
    500: '#2f5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa5;
$custom-light: #768bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa5",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 215.593,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48862,
    "c": 0.12414,
    "h": 258
  },
  "luminance": 0.11505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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