#2F6BC4#2F6BC4

#2F6BC4 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 53.6% C 0.152 H 258.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2F6BC4
RGBrgb(47, 107, 196)
HSLhsl(216, 61%, 48%)
HSVhsv(216, 76%, 77%)
CMYKcmyk(76%, 45.4%, 0%, 23.1%)
CIE-LABlab(45.78, 12.03, -52.06)
CIE-LCHlch(45.78, 53.43, 283.01°)
OKLaboklab(53.62% -0.0306 -0.1493)
OKLCHoklch(53.62% 0.152 258.4)
XYZxyz(16.3901, 15.1034, 54.2653)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BC4 #C4882F
analogous
#2FB5C4 #2F6BC4 #3D2FC4
triadic
#2F6BC4 #C42F6B #6BC42F
tetradic
#2F6BC4 #C42FB5 #C4882F #2FC43D
square
#2F6BC4 #C42FB5 #C4882F #2FC43D
split-complementary
#2F6BC4 #C43D2F #B5C42F
monochromatic
#173561 #235093 #2F6BC4 #598CD7 #8AAEE3

Accessibility & contrast

On white

5.22
#2F6BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F6BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BC4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BC4#FFFFFF#000000##FFFFFF
##2F6BC41.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D74C7
Deuteranopia (green-blind)
#1B66C2
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f6bc4;
/* rgb */ color: rgb(47, 107, 196);
/* oklch */ color: oklch(53.6% 0.152 258.4);
Tailwind
colors: {
  custom: {
    50: '#7c94d6',
    500: '#2f6bc4',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bc4;
$custom-light: #7c94d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bc4",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 196
  },
  "hsl": {
    "h": 215.839,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53615,
    "c": 0.15237,
    "h": 258.4
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#2F6BC4
secondary
#CDAF82
accent
#A443E4
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F6BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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