#2F5EB8#2F5EB8

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

Color values

HEX#2F5EB8
RGBrgb(47, 94, 184)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(74.5%, 48.9%, 0%, 27.8%)
CIE-LABlab(41.33, 15.85, -52.25)
CIE-LCHlch(41.33, 54.60, 286.88°)
OKLaboklab(49.95% -0.0216 -0.1501)
OKLCHoklch(49.95% 0.152 261.8)
XYZxyz(13.8236, 12.0689, 46.9391)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB8 #B8892F
analogous
#2FA2B8 #2F5EB8 #442FB8
triadic
#2F5EB8 #B82F5E #5EB82F
tetradic
#2F5EB8 #B82FA2 #B8892F #2FB844
square
#2F5EB8 #B82FA2 #B8892F #2FB844
split-complementary
#2F5EB8 #B8442F #A2B82F
monochromatic
#162C57 #234587 #2F5EB8 #527ED3 #82A2DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5EB8#FFFFFF#000000##FFFFFF
##2F5EB81.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5eb8;
/* rgb */ color: rgb(47, 94, 184);
/* oklch */ color: oklch(49.9% 0.152 261.8);
Tailwind
colors: {
  custom: {
    50: '#7a8bce',
    500: '#2f5eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb8;
$custom-light: #7a8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb8",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 184
  },
  "hsl": {
    "h": 219.416,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49947,
    "c": 0.1516,
    "h": 261.8
  },
  "luminance": 0.1207
}

Semantic roles & 50–950 ramp

primary
#2F5EB8
secondary
#C8AE7B
accent
#AD45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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