#2F5BA6#2F5BA6

#2F5BA6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.130 H 260.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2F5BA6
RGBrgb(47, 91, 166)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 65%)
CMYKcmyk(71.7%, 45.2%, 0%, 34.9%)
CIE-LABlab(39.31, 11.00, -44.88)
CIE-LCHlch(39.31, 46.21, 283.77°)
OKLaboklab(48.02% -0.0218 -0.1284)
OKLCHoklch(48.02% 0.13 260.3)
XYZxyz(11.7938, 10.8384, 37.5395)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA6 #A67A2F
analogous
#2F97A6 #2F5BA6 #3E2FA6
triadic
#2F5BA6 #A62F5B #5BA62F
tetradic
#2F5BA6 #A62F97 #A67A2F #2FA63E
square
#2F5BA6 #A62F97 #A67A2F #2FA63E
split-complementary
#2F5BA6 #A63E2F #97A62F
monochromatic
#142747 #214176 #2F5BA6 #4778CB #779BD8

Accessibility & contrast

On white

6.63
#2F5BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2F5BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BA6
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA6#FFFFFF#000000##FFFFFF
##2F5BA61.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A9
Deuteranopia (green-blind)
#1F57A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ba6;
/* rgb */ color: rgb(47, 91, 166);
/* oklch */ color: oklch(48.0% 0.130 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688c1',
    500: '#2f5ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba6;
$custom-light: #7688c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba6",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 217.815,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48024,
    "c": 0.1303,
    "h": 260.3
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#2F5BA6
secondary
#C1A370
accent
#A849DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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