#2F5AB4#2F5AB4

#2F5AB4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.151 H 262.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB4
RGBrgb(47, 90, 180)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 71%)
CMYKcmyk(73.9%, 50%, 0%, 29.4%)
CIE-LABlab(39.93, 16.95, -52.15)
CIE-LCHlch(39.93, 54.83, 288.00°)
OKLaboklab(48.8% -0.0188 -0.1498)
OKLCHoklch(48.8% 0.151 262.9)
XYZxyz(13.0637, 11.2105, 44.6465)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB4 #B4892F
analogous
#2F9CB4 #2F5AB4 #472FB4
triadic
#2F5AB4 #B42F5A #5AB42F
tetradic
#2F5AB4 #B42F9C #B4892F #2FB447
square
#2F5AB4 #B42F9C #B4892F #2FB447
split-complementary
#2F5AB4 #B4472F #9CB42F
monochromatic
#162953 #224283 #2F5AB4 #4F79D1 #809EDE

Accessibility & contrast

On white

6.48
#2F5AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F5AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AB4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB4#FFFFFF#000000##FFFFFF
##2F5AB41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ab4;
/* rgb */ color: rgb(47, 90, 180);
/* oklch */ color: oklch(48.8% 0.151 262.9);
Tailwind
colors: {
  custom: {
    50: '#7988cb',
    500: '#2f5ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab4;
$custom-light: #7988cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab4",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 220.602,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48797,
    "c": 0.15101,
    "h": 262.9
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

primary
#2F5AB4
secondary
#C7AD78
accent
#AF46E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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