#2F6DC4#2F6DC4

#2F6DC4 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 54.1% C 0.150 H 257.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2F6DC4
RGBrgb(47, 109, 196)
HSLhsl(215, 61%, 48%)
HSVhsv(215, 76%, 77%)
CMYKcmyk(76%, 44.4%, 0%, 23.1%)
CIE-LABlab(46.35, 10.76, -51.15)
CIE-LCHlch(46.35, 52.27, 281.88°)
OKLaboklab(54.06% -0.0322 -0.1465)
OKLCHoklch(54.06% 0.15 257.6)
XYZxyz(16.6011, 15.5252, 54.3356)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DC4 #C4862F
analogous
#2FB7C4 #2F6DC4 #3C2FC4
triadic
#2F6DC4 #C42F6D #6DC42F
tetradic
#2F6DC4 #C42FB7 #C4862F #2FC43C
square
#2F6DC4 #C42FB7 #C4862F #2FC43C
split-complementary
#2F6DC4 #C43C2F #B7C42F
monochromatic
#173661 #235293 #2F6DC4 #598ED7 #8AAFE3

Accessibility & contrast

On white

5.12
#2F6DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2F6DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DC4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DC4#FFFFFF#000000##FFFFFF
##2F6DC41.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4175C7
Deuteranopia (green-blind)
#2267C2
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f6dc4;
/* rgb */ color: rgb(47, 109, 196);
/* oklch */ color: oklch(54.1% 0.150 257.6);
Tailwind
colors: {
  custom: {
    50: '#7c96d6',
    500: '#2f6dc4',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dc4;
$custom-light: #7c96d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dc4",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 215.034,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54056,
    "c": 0.15005,
    "h": 257.6
  },
  "luminance": 0.15527
}

Semantic roles & 50–950 ramp

primary
#2F6DC4
secondary
#CDAE82
accent
#A143E4
background
#F8F9FD
surface
#EFF1FA
border
#CACBD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F6DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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