#2F5FB7#2F5FB7

#2F5FB7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.149 H 261.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB7
RGBrgb(47, 95, 183)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(74.3%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.54, 14.82, -51.31)
CIE-LCHlch(41.54, 53.41, 286.11°)
OKLaboklab(50.09% -0.0226 -0.1473)
OKLCHoklch(50.09% 0.149 261.3)
XYZxyz(13.8087, 12.2061, 46.4188)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB7 #B7872F
analogous
#2FA3B7 #2F5FB7 #432FB7
triadic
#2F5FB7 #B72F5F #5FB72F
tetradic
#2F5FB7 #B72FA3 #B7872F #2FB743
square
#2F5FB7 #B72FA3 #B7872F #2FB743
split-complementary
#2F5FB7 #B7432F #A3B72F
monochromatic
#162C56 #224686 #2F5FB7 #517FD2 #82A2DF

Accessibility & contrast

On white

6.10
#2F5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2F5FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB7
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB7#FFFFFF#000000##FFFFFF
##2F5FB71.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BA
Deuteranopia (green-blind)
#035CB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb7;
/* rgb */ color: rgb(47, 95, 183);
/* oklch */ color: oklch(50.1% 0.149 261.3);
Tailwind
colors: {
  custom: {
    50: '#7a8bcd',
    500: '#2f5fb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb7;
$custom-light: #7a8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb7",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 218.824,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50092,
    "c": 0.14902,
    "h": 261.3
  },
  "luminance": 0.12208
}

Semantic roles & 50–950 ramp

primary
#2F5FB7
secondary
#C8AC7A
accent
#AB45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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