#2F5DB7#2F5DB7

#2F5DB7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.151 H 262.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5DB7
RGBrgb(47, 93, 183)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(74.3%, 49.2%, 0%, 28.2%)
CIE-LABlab(40.98, 16.12, -52.22)
CIE-LCHlch(40.98, 54.66, 287.16°)
OKLaboklab(49.66% -0.0209 -0.15)
OKLCHoklch(49.66% 0.151 262.1)
XYZxyz(13.6308, 11.8504, 46.3595)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DB7 #B7892F
analogous
#2FA1B7 #2F5DB7 #452FB7
triadic
#2F5DB7 #B72F5D #5DB72F
tetradic
#2F5DB7 #B72FA1 #B7892F #2FB745
square
#2F5DB7 #B72FA1 #B7892F #2FB745
split-complementary
#2F5DB7 #B7452F #A1B72F
monochromatic
#162C56 #224486 #2F5DB7 #517DD2 #82A1DF

Accessibility & contrast

On white

6.23
#2F5DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2F5DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DB7
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DB7#FFFFFF#000000##FFFFFF
##2F5DB71.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BA
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5db7;
/* rgb */ color: rgb(47, 93, 183);
/* oklch */ color: oklch(49.7% 0.151 262.1);
Tailwind
colors: {
  custom: {
    50: '#7a8acd',
    500: '#2f5db7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5db7;
$custom-light: #7a8acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5db7",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 183
  },
  "hsl": {
    "h": 219.706,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4966,
    "c": 0.15146,
    "h": 262.1
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#2F5DB7
secondary
#C8AE7A
accent
#AD45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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