#2F5BB5#2F5BB5

#2F5BB5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.151 H 262.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2F5BB5
RGBrgb(47, 91, 181)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(74%, 49.7%, 0%, 29%)
CIE-LABlab(40.28, 16.67, -52.17)
CIE-LCHlch(40.28, 54.77, 287.72°)
OKLaboklab(49.08% -0.0195 -0.1499)
OKLCHoklch(49.08% 0.151 262.6)
XYZxyz(13.2509, 11.4213, 45.2133)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BB5 #B5892F
analogous
#2F9EB5 #2F5BB5 #462FB5
triadic
#2F5BB5 #B52F5B #5BB52F
tetradic
#2F5BB5 #B52F9E #B5892F #2FB546
square
#2F5BB5 #B52F9E #B5892F #2FB546
split-complementary
#2F5BB5 #B5462F #9EB52F
monochromatic
#162A54 #224384 #2F5BB5 #507AD1 #809FDE

Accessibility & contrast

On white

6.39
#2F5BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2F5BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BB5
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BB5#FFFFFF#000000##FFFFFF
##2F5BB51.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5bb5;
/* rgb */ color: rgb(47, 91, 181);
/* oklch */ color: oklch(49.1% 0.151 262.6);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#2f5bb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bb5;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bb5",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 220.299,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49084,
    "c": 0.15116,
    "h": 262.6
  },
  "luminance": 0.11423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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