#2F5FB4#2F5FB4

#2F5FB4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.145 H 260.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB4
RGBrgb(47, 95, 180)
HSLhsl(218, 59%, 45%)
HSVhsv(218, 74%, 71%)
CMYKcmyk(73.9%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.35, 13.69, -49.87)
CIE-LCHlch(41.35, 51.72, 285.35°)
OKLaboklab(49.88% -0.023 -0.143)
OKLCHoklch(49.88% 0.145 260.9)
XYZxyz(13.4998, 12.0826, 44.7919)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB4 #B4842F
analogous
#2FA2B4 #2F5FB4 #422FB4
triadic
#2F5FB4 #B42F5F #5FB42F
tetradic
#2F5FB4 #B42FA2 #B4842F #2FB442
square
#2F5FB4 #B42FA2 #B4842F #2FB442
split-complementary
#2F5FB4 #B4422F #A2B42F
monochromatic
#162C53 #224583 #2F5FB4 #4F7ED1 #80A2DE

Accessibility & contrast

On white

6.15
#2F5FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2F5FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB4#FFFFFF#000000##FFFFFF
##2F5FB41.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#0F5CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb4;
/* rgb */ color: rgb(47, 95, 180);
/* oklch */ color: oklch(49.9% 0.145 260.9);
Tailwind
colors: {
  custom: {
    50: '#798bcb',
    500: '#2f5fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb4;
$custom-light: #798bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb4",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 218.346,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4988,
    "c": 0.14489,
    "h": 260.9
  },
  "luminance": 0.12084
}

Semantic roles & 50–950 ramp

primary
#2F5FB4
secondary
#C7AA78
accent
#AA46E2
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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