#2F5FB5#2F5FB5

#2F5FB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.146 H 261.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB5
RGBrgb(47, 95, 181)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(74%, 47.5%, 0%, 29%)
CIE-LABlab(41.41, 14.07, -50.35)
CIE-LCHlch(41.41, 52.28, 285.61°)
OKLaboklab(49.95% -0.0229 -0.1445)
OKLCHoklch(49.95% 0.146 261)
XYZxyz(13.6020, 12.1235, 45.3303)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB5 #B5852F
analogous
#2FA2B5 #2F5FB5 #422FB5
triadic
#2F5FB5 #B52F5F #5FB52F
tetradic
#2F5FB5 #B52FA2 #B5852F #2FB542
square
#2F5FB5 #B52FA2 #B5852F #2FB542
split-complementary
#2F5FB5 #B5422F #A2B52F
monochromatic
#162C54 #224684 #2F5FB5 #507ED1 #80A2DE

Accessibility & contrast

On white

6.13
#2F5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5FB5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB5#FFFFFF#000000##FFFFFF
##2F5FB51.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#0C5CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb5;
/* rgb */ color: rgb(47, 95, 181);
/* oklch */ color: oklch(50.0% 0.146 261.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#2f5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb5",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 218.507,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4995,
    "c": 0.14627,
    "h": 261
  },
  "luminance": 0.12125
}

Semantic roles & 50–950 ramp

primary
#2F5FB5
secondary
#C7AB79
accent
#AA46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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