#2F6DC8#2F6DC8

#2F6DC8 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.3% C 0.155 H 258.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F6DC8
RGBrgb(47, 109, 200)
HSLhsl(216, 62%, 48%)
HSVhsv(216, 77%, 78%)
CMYKcmyk(76.5%, 45.5%, 0%, 21.6%)
CIE-LABlab(46.59, 12.27, -53.05)
CIE-LCHlch(46.59, 54.45, 283.02°)
OKLaboklab(54.33% -0.0315 -0.1521)
OKLCHoklch(54.33% 0.155 258.3)
XYZxyz(17.0624, 15.7098, 56.7654)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DC8 #C88A2F
analogous
#2FB9C8 #2F6DC8 #3D2FC8
triadic
#2F6DC8 #C82F6D #6DC82F
tetradic
#2F6DC8 #C82FB9 #C88A2F #2FC83D
square
#2F6DC8 #C82FB9 #C88A2F #2FC83D
split-complementary
#2F6DC8 #C83D2F #B9C82F
monochromatic
#183765 #235296 #2F6DC8 #5C8ED9 #8DB0E4

Accessibility & contrast

On white

5.07
#2F6DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2F6DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DC8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DC8#FFFFFF#000000##FFFFFF
##2F6DC81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CB
Deuteranopia (green-blind)
#1A68C6
Tritanopia (blue-blind)
#008391
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f6dc8;
/* rgb */ color: rgb(47, 109, 200);
/* oklch */ color: oklch(54.3% 0.155 258.3);
Tailwind
colors: {
  custom: {
    50: '#7d96d9',
    500: '#2f6dc8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dc8;
$custom-light: #7d96d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dc8",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 200
  },
  "hsl": {
    "h": 215.686,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54325,
    "c": 0.15538,
    "h": 258.3
  },
  "luminance": 0.15712
}

Semantic roles & 50–950 ramp

primary
#2F6DC8
secondary
#CFB084
accent
#A343E5
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F6DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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