#2F6EC8#2F6EC8

#2F6EC8 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.5% C 0.154 H 257.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F6EC8
RGBrgb(47, 110, 200)
HSLhsl(215, 62%, 48%)
HSVhsv(215, 77%, 78%)
CMYKcmyk(76.5%, 45%, 0%, 21.6%)
CIE-LABlab(46.88, 11.63, -52.60)
CIE-LCHlch(46.88, 53.87, 282.47°)
OKLaboklab(54.54% -0.0323 -0.1508)
OKLCHoklch(54.54% 0.154 257.9)
XYZxyz(17.1697, 15.9243, 56.8012)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6EC8 #C8892F
analogous
#2FBAC8 #2F6EC8 #3C2FC8
triadic
#2F6EC8 #C82F6E #6EC82F
tetradic
#2F6EC8 #C82FBA #C8892F #2FC83C
square
#2F6EC8 #C82FBA #C8892F #2FC83C
split-complementary
#2F6EC8 #C83C2F #BAC82F
monochromatic
#183765 #235396 #2F6EC8 #5C8FD9 #8DB1E4

Accessibility & contrast

On white

5.02
#2F6EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2F6EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6EC8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6EC8#FFFFFF#000000##FFFFFF
##2F6EC81.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F77CB
Deuteranopia (green-blind)
#1E69C6
Tritanopia (blue-blind)
#008391
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f6ec8;
/* rgb */ color: rgb(47, 110, 200);
/* oklch */ color: oklch(54.5% 0.154 257.9);
Tailwind
colors: {
  custom: {
    50: '#7d97d9',
    500: '#2f6ec8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6ec8;
$custom-light: #7d97d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6ec8",
  "rgb": {
    "r": 47,
    "g": 110,
    "b": 200
  },
  "hsl": {
    "h": 215.294,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54544,
    "c": 0.15422,
    "h": 257.9
  },
  "luminance": 0.15926
}

Semantic roles & 50–950 ramp

primary
#2F6EC8
secondary
#CFB084
accent
#A243E5
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F6EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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