#2F6DDA#2F6DDA

#2F6DDA is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.6% C 0.179 H 260.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2F6DDA
RGBrgb(47, 109, 218)
HSLhsl(218, 70%, 52%)
HSVhsv(218, 78%, 85%)
CMYKcmyk(78.4%, 50%, 0%, 14.5%)
CIE-LABlab(47.75, 19.04, -61.45)
CIE-LCHlch(47.75, 64.34, 287.21°)
OKLaboklab(55.59% -0.0288 -0.1769)
OKLCHoklch(55.59% 0.179 260.8)
XYZxyz(19.2912, 16.6013, 68.5037)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DDA #DA9C2F
analogous
#2FC2DA #2F6DDA #472FDA
triadic
#2F6DDA #DA2F6D #6DDA2F
tetradic
#2F6DDA #DA2FC2 #DA9C2F #2FDA47
square
#2F6DDA #DA2FC2 #DA9C2F #2FDA47
split-complementary
#2F6DDA #DA472F #C2DA2F
monochromatic
#163A79 #1F52AD #2F6DDA #6391E3 #97B6EC

Accessibility & contrast

On white

4.86
#2F6DDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2F6DDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DDA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DDA#FFFFFF#000000##FFFFFF
##2F6DDA1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#287ADE
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#008799
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f6dda;
/* rgb */ color: rgb(47, 109, 218);
/* oklch */ color: oklch(55.6% 0.179 260.8);
Tailwind
colors: {
  custom: {
    50: '#8196e6',
    500: '#2f6dda',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dda;
$custom-light: #8196e6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dda",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 218
  },
  "hsl": {
    "h": 218.246,
    "s": 69.796,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5559,
    "c": 0.1792,
    "h": 260.8
  },
  "luminance": 0.16604
}

Semantic roles & 50–950 ramp

primary
#2F6DDA
secondary
#D8BD8D
accent
#AC3BED
background
#F8F9FE
surface
#F0F1FC
border
#CBCBD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2F6DDA

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

Preview Lab → · Contrast checker → · Palette generator →

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