#2F5EB6#2F5EB6

#2F5EB6 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.149 H 261.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB6
RGBrgb(47, 94, 182)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(74.2%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.19, 15.10, -51.29)
CIE-LCHlch(41.19, 53.47, 286.40°)
OKLaboklab(49.8% -0.0219 -0.1472)
OKLCHoklch(49.8% 0.149 261.6)
XYZxyz(13.6155, 11.9856, 45.8428)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB6 #B6872F
analogous
#2FA2B6 #2F5EB6 #432FB6
triadic
#2F5EB6 #B62F5E #5EB62F
tetradic
#2F5EB6 #B62FA2 #B6872F #2FB643
square
#2F5EB6 #B62FA2 #B6872F #2FB643
split-complementary
#2F5EB6 #B6432F #A2B62F
monochromatic
#162C55 #224585 #2F5EB6 #507DD2 #81A2DE

Accessibility & contrast

On white

6.18
#2F5EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB6
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB6#FFFFFF#000000##FFFFFF
##2F5EB61.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5eb6;
/* rgb */ color: rgb(47, 94, 182);
/* oklch */ color: oklch(49.8% 0.149 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#2f5eb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb6;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb6",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 219.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49804,
    "c": 0.14887,
    "h": 261.6
  },
  "luminance": 0.11987
}

Semantic roles & 50–950 ramp

primary
#2F5EB6
secondary
#C7AC79
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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