#2F6BD2#2F6BD2

#2F6BD2 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.6% C 0.171 H 260.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2F6BD2
RGBrgb(47, 107, 210)
HSLhsl(218, 64%, 50%)
HSVhsv(218, 78%, 82%)
CMYKcmyk(77.6%, 49%, 0%, 17.6%)
CIE-LABlab(46.67, 17.30, -58.65)
CIE-LCHlch(46.67, 61.15, 286.44°)
OKLaboklab(54.59% -0.0283 -0.1686)
OKLCHoklch(54.59% 0.171 260.5)
XYZxyz(18.0586, 15.7708, 63.0526)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BD2 #D2962F
analogous
#2FBDD2 #2F6BD2 #442FD2
triadic
#2F6BD2 #D22F6B #6BD22F
tetradic
#2F6BD2 #D22FBD #D2962F #2FD244
square
#2F6BD2 #D22FBD #D2962F #2FD244
split-complementary
#2F6BD2 #D2442F #BDD22F
monochromatic
#18386F #2351A1 #2F6BD2 #618FDD #94B3E8

Accessibility & contrast

On white

5.05
#2F6BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2F6BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BD2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BD2#FFFFFF#000000##FFFFFF
##2F6BD21.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E76D6
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#008494
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f6bd2;
/* rgb */ color: rgb(47, 107, 210);
/* oklch */ color: oklch(54.6% 0.171 260.5);
Tailwind
colors: {
  custom: {
    50: '#7f94e0',
    500: '#2f6bd2',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bd2;
$custom-light: #7f94e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bd2",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 210
  },
  "hsl": {
    "h": 217.914,
    "s": 64.427,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54593,
    "c": 0.17101,
    "h": 260.5
  },
  "luminance": 0.15773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F6BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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