#2F5FA8#2F5FA8

#2F5FA8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.128 H 258.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA8
RGBrgb(47, 95, 168)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 66%)
CMYKcmyk(72%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.60, 9.16, -44.00)
CIE-LCHlch(40.60, 44.95, 281.76°)
OKLaboklab(49.06% -0.0252 -0.1258)
OKLCHoklch(49.06% 0.128 258.7)
XYZxyz(12.3298, 11.6146, 38.6302)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA8 #A8782F
analogous
#2F9CA8 #2F5FA8 #3B2FA8
triadic
#2F5FA8 #A82F5F #5FA82F
tetradic
#2F5FA8 #A82F9C #A8782F #2FA83B
square
#2F5FA8 #A82F9C #A8782F #2FA83B
split-complementary
#2F5FA8 #A83B2F #9CA82F
monochromatic
#142948 #224478 #2F5FA8 #487DCC #789FD9

Accessibility & contrast

On white

6.32
#2F5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5FA8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA8#FFFFFF#000000##FFFFFF
##2F5FA81.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C66AB
Deuteranopia (green-blind)
#265BA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5fa8;
/* rgb */ color: rgb(47, 95, 168);
/* oklch */ color: oklch(49.1% 0.128 258.7);
Tailwind
colors: {
  custom: {
    50: '#778bc2',
    500: '#2f5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa8;
$custom-light: #778bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa8",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 216.198,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4906,
    "c": 0.12831,
    "h": 258.7
  },
  "luminance": 0.11616
}

Semantic roles & 50–950 ramp

primary
#2F5FA8
secondary
#C1A271
accent
#A448E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2F5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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