#2F6BCF#2F6BCF

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

Color values

HEX#2F6BCF
RGBrgb(47, 107, 207)
HSLhsl(218, 63%, 50%)
HSVhsv(218, 77%, 81%)
CMYKcmyk(77.3%, 48.3%, 0%, 18.8%)
CIE-LABlab(46.48, 16.17, -57.25)
CIE-LCHlch(46.48, 59.49, 285.78°)
OKLaboklab(54.38% -0.0288 -0.1645)
OKLCHoklch(54.38% 0.167 260.1)
XYZxyz(17.6884, 15.6227, 61.1026)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BCF #CF932F
analogous
#2FBBCF #2F6BCF #432FCF
triadic
#2F6BCF #CF2F6B #6BCF2F
tetradic
#2F6BCF #CF2FBB #CF932F #2FCF43
square
#2F6BCF #CF2FBB #CF932F #2FCF43
split-complementary
#2F6BCF #CF432F #BBCF2F
monochromatic
#18376B #24519D #2F6BCF #608EDB #92B2E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F6BCF#FFFFFF#000000##FFFFFF
##2F6BCF1.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)
#3176D3
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#008393
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f6bcf;
/* rgb */ color: rgb(47, 107, 207);
/* oklch */ color: oklch(54.4% 0.167 260.1);
Tailwind
colors: {
  custom: {
    50: '#7f94de',
    500: '#2f6bcf',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bcf;
$custom-light: #7f94de;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bcf",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 207
  },
  "hsl": {
    "h": 217.5,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.54379,
    "c": 0.16703,
    "h": 260.1
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

primary
#2F6BCF
secondary
#D1B689
accent
#A842E6
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F6BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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