#2F6CD2#2F6CD2

#2F6CD2 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.8% C 0.170 H 260.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#2F6CD2
RGBrgb(47, 108, 210)
HSLhsl(218, 64%, 50%)
HSVhsv(218, 78%, 82%)
CMYKcmyk(77.6%, 48.6%, 0%, 17.6%)
CIE-LABlab(46.95, 16.67, -58.20)
CIE-LCHlch(46.95, 60.54, 285.98°)
OKLaboklab(54.81% -0.0291 -0.1673)
OKLCHoklch(54.81% 0.17 260.1)
XYZxyz(18.1635, 15.9805, 63.0875)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6CD2 #D2952F
analogous
#2FBDD2 #2F6CD2 #432FD2
triadic
#2F6CD2 #D22F6C #6CD22F
tetradic
#2F6CD2 #D22FBD #D2952F #2FD243
square
#2F6CD2 #D22FBD #D2952F #2FD243
split-complementary
#2F6CD2 #D2432F #BDD22F
monochromatic
#18386F #2352A1 #2F6CD2 #6190DD #94B3E8

Accessibility & contrast

On white

5.00
#2F6CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2F6CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6CD2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6CD2#FFFFFF#000000##FFFFFF
##2F6CD21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3177D6
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f6cd2;
/* rgb */ color: rgb(47, 108, 210);
/* oklch */ color: oklch(54.8% 0.170 260.1);
Tailwind
colors: {
  custom: {
    50: '#7f95e0',
    500: '#2f6cd2',
    950: '#000000',
  },
}
SCSS
$custom: #2f6cd2;
$custom-light: #7f95e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6cd2",
  "rgb": {
    "r": 47,
    "g": 108,
    "b": 210
  },
  "hsl": {
    "h": 217.546,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54805,
    "c": 0.16983,
    "h": 260.1
  },
  "luminance": 0.15983
}

Semantic roles & 50–950 ramp

primary
#2F6CD2
secondary
#D3B88A
accent
#A940E7
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F6CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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