#2F6DC6#2F6DC6

#2F6DC6 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.2% C 0.153 H 258.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F6DC6
RGBrgb(47, 109, 198)
HSLhsl(215, 62%, 48%)
HSVhsv(215, 76%, 78%)
CMYKcmyk(76.3%, 44.9%, 0%, 22.4%)
CIE-LABlab(46.47, 11.51, -52.10)
CIE-LCHlch(46.47, 53.36, 282.46°)
OKLaboklab(54.19% -0.0319 -0.1493)
OKLCHoklch(54.19% 0.153 258)
XYZxyz(16.8302, 15.6169, 55.5425)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DC6 #C6882F
analogous
#2FB9C6 #2F6DC6 #3C2FC6
triadic
#2F6DC6 #C62F6D #6DC62F
tetradic
#2F6DC6 #C62FB9 #C6882F #2FC63C
square
#2F6DC6 #C62FB9 #C6882F #2FC63C
split-complementary
#2F6DC6 #C63C2F #B9C62F
monochromatic
#183763 #235295 #2F6DC6 #5A8ED8 #8CB0E4

Accessibility & contrast

On white

5.09
#2F6DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F6DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DC6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DC6#FFFFFF#000000##FFFFFF
##2F6DC61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F76C9
Deuteranopia (green-blind)
#1E68C4
Tritanopia (blue-blind)
#008290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f6dc6;
/* rgb */ color: rgb(47, 109, 198);
/* oklch */ color: oklch(54.2% 0.153 258.0);
Tailwind
colors: {
  custom: {
    50: '#7d96d8',
    500: '#2f6dc6',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dc6;
$custom-light: #7d96d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dc6",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 198
  },
  "hsl": {
    "h": 215.364,
    "s": 61.633,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.15271,
    "h": 258
  },
  "luminance": 0.15619
}

Semantic roles & 50–950 ramp

primary
#2F6DC6
secondary
#CEAF83
accent
#A243E5
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F6DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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