#2F5FB6#2F5FB6

#2F5FB6 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.148 H 261.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB6
RGBrgb(47, 95, 182)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(74.2%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.48, 14.45, -50.83)
CIE-LCHlch(41.48, 52.85, 285.86°)
OKLaboklab(50.02% -0.0227 -0.1459)
OKLCHoklch(50.02% 0.148 261.1)
XYZxyz(13.7050, 12.1646, 45.8726)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB6 #B6862F
analogous
#2FA2B6 #2F5FB6 #432FB6
triadic
#2F5FB6 #B62F5F #5FB62F
tetradic
#2F5FB6 #B62FA2 #B6862F #2FB643
square
#2F5FB6 #B62FA2 #B6862F #2FB643
split-complementary
#2F5FB6 #B6432F #A2B62F
monochromatic
#162C55 #224685 #2F5FB6 #507ED2 #81A2DE

Accessibility & contrast

On white

6.12
#2F5FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2F5FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB6#FFFFFF#000000##FFFFFF
##2F5FB61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B9
Deuteranopia (green-blind)
#085CB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb6;
/* rgb */ color: rgb(47, 95, 182);
/* oklch */ color: oklch(50.0% 0.148 261.1);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#2f5fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb6;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb6",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 218.667,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50021,
    "c": 0.14765,
    "h": 261.1
  },
  "luminance": 0.12166
}

Semantic roles & 50–950 ramp

primary
#2F5FB6
secondary
#C7AC79
accent
#AB46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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