#2F5EB4#2F5EB4

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

Color values

HEX#2F5EB4
RGBrgb(47, 94, 180)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(73.9%, 47.8%, 0%, 29.4%)
CIE-LABlab(41.06, 14.34, -50.33)
CIE-LCHlch(41.06, 52.33, 285.90°)
OKLaboklab(49.66% -0.0222 -0.1444)
OKLCHoklch(49.66% 0.146 261.3)
XYZxyz(13.4103, 11.9036, 44.7620)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB4 #B4852F
analogous
#2FA1B4 #2F5EB4 #432FB4
triadic
#2F5EB4 #B42F5E #5EB42F
tetradic
#2F5EB4 #B42FA1 #B4852F #2FB443
square
#2F5EB4 #B42FA1 #B4852F #2FB443
split-complementary
#2F5EB4 #B4432F #A1B42F
monochromatic
#162B53 #224583 #2F5EB4 #4F7DD1 #80A1DE

Accessibility & contrast

On white

6.21
#2F5EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2F5EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB4
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB4#FFFFFF#000000##FFFFFF
##2F5EB41.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B7
Deuteranopia (green-blind)
#095BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5eb4;
/* rgb */ color: rgb(47, 94, 180);
/* oklch */ color: oklch(49.7% 0.146 261.3);
Tailwind
colors: {
  custom: {
    50: '#798bcb',
    500: '#2f5eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb4;
$custom-light: #798bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb4",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 218.797,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49661,
    "c": 0.14611,
    "h": 261.3
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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