#2F6BD3#2F6BD3

#2F6BD3 is a mid, vivid blue. Relative luminance 0.158; OKLCH L 54.7% C 0.172 H 260.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2F6BD3
RGBrgb(47, 107, 211)
HSLhsl(218, 65%, 51%)
HSVhsv(218, 78%, 83%)
CMYKcmyk(77.7%, 49.3%, 0%, 17.3%)
CIE-LABlab(46.74, 17.68, -59.11)
CIE-LCHlch(46.74, 61.70, 286.65°)
OKLaboklab(54.66% -0.0282 -0.17)
OKLCHoklch(54.66% 0.172 260.6)
XYZxyz(18.1836, 15.8208, 63.7108)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BD3 #D3972F
analogous
#2FBDD3 #2F6BD3 #452FD3
triadic
#2F6BD3 #D32F6B #6BD32F
tetradic
#2F6BD3 #D32FBD #D3972F #2FD345
square
#2F6BD3 #D32FBD #D3972F #2FD345
split-complementary
#2F6BD3 #D3452F #BDD32F
monochromatic
#183870 #2251A2 #2F6BD3 #628FDE #94B3E8

Accessibility & contrast

On white

5.04
#2F6BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2F6BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BD3
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BD3#FFFFFF#000000##FFFFFF
##2F6BD31.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f6bd3;
/* rgb */ color: rgb(47, 107, 211);
/* oklch */ color: oklch(54.7% 0.172 260.6);
Tailwind
colors: {
  custom: {
    50: '#8094e1',
    500: '#2f6bd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bd3;
$custom-light: #8094e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bd3",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 211
  },
  "hsl": {
    "h": 218.049,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54664,
    "c": 0.17234,
    "h": 260.6
  },
  "luminance": 0.15823
}

Semantic roles & 50–950 ramp

primary
#2F6BD3
secondary
#D3B98A
accent
#AA40E8
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F6BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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