#2F6DC5#2F6DC5

#2F6DC5 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.1% C 0.151 H 257.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2F6DC5
RGBrgb(47, 109, 197)
HSLhsl(215, 61%, 48%)
HSVhsv(215, 76%, 77%)
CMYKcmyk(76.1%, 44.7%, 0%, 22.7%)
CIE-LABlab(46.41, 11.14, -51.62)
CIE-LCHlch(46.41, 52.81, 282.18°)
OKLaboklab(54.12% -0.0321 -0.1479)
OKLCHoklch(54.12% 0.151 257.8)
XYZxyz(16.7153, 15.5709, 54.9370)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DC5 #C5872F
analogous
#2FB8C5 #2F6DC5 #3C2FC5
triadic
#2F6DC5 #C52F6D #6DC52F
tetradic
#2F6DC5 #C52FB8 #C5872F #2FC53C
square
#2F6DC5 #C52FB8 #C5872F #2FC53C
split-complementary
#2F6DC5 #C53C2F #B8C52F
monochromatic
#173662 #235294 #2F6DC5 #5A8ED8 #8BB0E3

Accessibility & contrast

On white

5.10
#2F6DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2F6DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DC5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DC5#FFFFFF#000000##FFFFFF
##2F6DC51.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4075C8
Deuteranopia (green-blind)
#2068C3
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f6dc5;
/* rgb */ color: rgb(47, 109, 197);
/* oklch */ color: oklch(54.1% 0.151 257.8);
Tailwind
colors: {
  custom: {
    50: '#7d96d7',
    500: '#2f6dc5',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dc5;
$custom-light: #7d96d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dc5",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 197
  },
  "hsl": {
    "h": 215.2,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54123,
    "c": 0.15138,
    "h": 257.8
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F6DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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