#2F5EB7#2F5EB7

#2F5EB7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.150 H 261.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB7
RGBrgb(47, 94, 183)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(74.3%, 48.6%, 0%, 28.2%)
CIE-LABlab(41.26, 15.47, -51.77)
CIE-LCHlch(41.26, 54.03, 286.64°)
OKLaboklab(49.88% -0.0217 -0.1487)
OKLCHoklch(49.88% 0.15 261.7)
XYZxyz(13.7192, 12.0271, 46.3890)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB7 #B7882F
analogous
#2FA2B7 #2F5EB7 #442FB7
triadic
#2F5EB7 #B72F5E #5EB72F
tetradic
#2F5EB7 #B72FA2 #B7882F #2FB744
square
#2F5EB7 #B72FA2 #B7882F #2FB744
split-complementary
#2F5EB7 #B7442F #A2B72F
monochromatic
#162C56 #224586 #2F5EB7 #517ED2 #82A2DF

Accessibility & contrast

On white

6.17
#2F5EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2F5EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB7
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB7#FFFFFF#000000##FFFFFF
##2F5EB71.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5eb7;
/* rgb */ color: rgb(47, 94, 183);
/* oklch */ color: oklch(49.9% 0.150 261.7);
Tailwind
colors: {
  custom: {
    50: '#7a8bcd',
    500: '#2f5eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb7;
$custom-light: #7a8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb7",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 219.265,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49875,
    "c": 0.15024,
    "h": 261.7
  },
  "luminance": 0.12029
}

Semantic roles & 50–950 ramp

primary
#2F5EB7
secondary
#C8AD7A
accent
#AC45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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