#2F6BC5#2F6BC5

#2F6BC5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 53.7% C 0.154 H 258.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2F6BC5
RGBrgb(47, 107, 197)
HSLhsl(216, 61%, 48%)
HSVhsv(216, 76%, 77%)
CMYKcmyk(76.1%, 45.7%, 0%, 22.7%)
CIE-LABlab(45.84, 12.41, -52.54)
CIE-LCHlch(45.84, 53.98, 283.29°)
OKLaboklab(53.68% -0.0304 -0.1507)
OKLCHoklch(53.68% 0.154 258.6)
XYZxyz(16.5043, 15.1491, 54.8667)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BC5 #C5892F
analogous
#2FB6C5 #2F6BC5 #3E2FC5
triadic
#2F6BC5 #C52F6B #6BC52F
tetradic
#2F6BC5 #C52FB6 #C5892F #2FC53E
square
#2F6BC5 #C52FB6 #C5892F #2FC53E
split-complementary
#2F6BC5 #C53E2F #B6C52F
monochromatic
#173562 #235094 #2F6BC5 #5A8CD8 #8BAEE3

Accessibility & contrast

On white

5.21
#2F6BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2F6BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BC5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BC5#FFFFFF#000000##FFFFFF
##2F6BC51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C74C8
Deuteranopia (green-blind)
#1966C3
Tritanopia (blue-blind)
#00808E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f6bc5;
/* rgb */ color: rgb(47, 107, 197);
/* oklch */ color: oklch(53.7% 0.154 258.6);
Tailwind
colors: {
  custom: {
    50: '#7d94d7',
    500: '#2f6bc5',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bc5;
$custom-light: #7d94d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bc5",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 197
  },
  "hsl": {
    "h": 216,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53683,
    "c": 0.1537,
    "h": 258.6
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F6BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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