#2F5DB4#2F5DB4

#2F5DB4 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.147 H 261.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2F5DB4
RGBrgb(47, 93, 180)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(73.9%, 48.3%, 0%, 29.4%)
CIE-LABlab(40.78, 14.99, -50.79)
CIE-LCHlch(40.78, 52.95, 286.44°)
OKLaboklab(49.44% -0.0213 -0.1458)
OKLCHoklch(49.44% 0.147 261.7)
XYZxyz(13.3219, 11.7269, 44.7326)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DB4 #B4862F
analogous
#2FA0B4 #2F5DB4 #442FB4
triadic
#2F5DB4 #B42F5D #5DB42F
tetradic
#2F5DB4 #B42FA0 #B4862F #2FB444
square
#2F5DB4 #B42FA0 #B4862F #2FB444
split-complementary
#2F5DB4 #B4442F #A0B42F
monochromatic
#162B53 #224483 #2F5DB4 #4F7CD1 #80A0DE

Accessibility & contrast

On white

6.28
#2F5DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DB4
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DB4#FFFFFF#000000##FFFFFF
##2F5DB41.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B7
Deuteranopia (green-blind)
#025AB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5db4;
/* rgb */ color: rgb(47, 93, 180);
/* oklch */ color: oklch(49.4% 0.147 261.7);
Tailwind
colors: {
  custom: {
    50: '#798acb',
    500: '#2f5db4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5db4;
$custom-light: #798acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5db4",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 219.248,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49444,
    "c": 0.14733,
    "h": 261.7
  },
  "luminance": 0.11728
}

Semantic roles & 50–950 ramp

primary
#2F5DB4
secondary
#C7AB78
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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