#2F5FB3#2F5FB3

#2F5FB3 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.144 H 260.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB3
RGBrgb(47, 95, 179)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 74%, 70%)
CMYKcmyk(73.7%, 46.9%, 0%, 29.8%)
CIE-LABlab(41.28, 13.31, -49.39)
CIE-LCHlch(41.28, 51.15, 285.08°)
OKLaboklab(49.81% -0.0232 -0.1416)
OKLCHoklch(49.81% 0.144 260.7)
XYZxyz(13.3983, 12.0420, 44.2573)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB3 #B3832F
analogous
#2FA1B3 #2F5FB3 #412FB3
triadic
#2F5FB3 #B32F5F #5FB32F
tetradic
#2F5FB3 #B32FA1 #B3832F #2FB341
square
#2F5FB3 #B32FA1 #B3832F #2FB341
split-complementary
#2F5FB3 #B3412F #A1B32F
monochromatic
#162C52 #224583 #2F5FB3 #4F7ED1 #7FA1DD

Accessibility & contrast

On white

6.16
#2F5FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2F5FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB3#FFFFFF#000000##FFFFFF
##2F5FB31.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B6
Deuteranopia (green-blind)
#125CB1
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5fb3;
/* rgb */ color: rgb(47, 95, 179);
/* oklch */ color: oklch(49.8% 0.144 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bca',
    500: '#2f5fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb3;
$custom-light: #798bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb3",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 218.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4981,
    "c": 0.14352,
    "h": 260.7
  },
  "luminance": 0.12043
}

Semantic roles & 50–950 ramp

primary
#2F5FB3
secondary
#C6AA78
accent
#A946E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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