#2A6BD3#2A6BD3

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

Color values

HEX#2A6BD3
RGBrgb(42, 107, 211)
HSLhsl(217, 67%, 50%)
HSVhsv(217, 80%, 83%)
CMYKcmyk(80.1%, 49.3%, 0%, 17.3%)
CIE-LABlab(46.59, 17.17, -59.36)
CIE-LCHlch(46.59, 61.79, 286.13°)
OKLaboklab(54.51% -0.0312 -0.1708)
OKLCHoklch(54.51% 0.174 259.6)
XYZxyz(17.9661, 15.7086, 63.7006)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6BD3 #D3922A
analogous
#2AC0D3 #2A6BD3 #3E2AD3
triadic
#2A6BD3 #D32A6B #6BD32A
tetradic
#2A6BD3 #D32AC0 #D3922A #2AD33E
square
#2A6BD3 #D32AC0 #D3922A #2AD33E
split-complementary
#2A6BD3 #D33E2A #C0D32A
monochromatic
#16376D #2051A0 #2A6BD3 #5C8EDE #8FB1E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A6BD3#FFFFFF#000000##FFFFFF
##2A6BD31.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)
#2C77D7
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#008495
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a6bd3;
/* rgb */ color: rgb(42, 107, 211);
/* oklch */ color: oklch(54.5% 0.174 259.6);
Tailwind
colors: {
  custom: {
    50: '#7e94e1',
    500: '#2a6bd3',
    950: '#000000',
  },
}
SCSS
$custom: #2a6bd3;
$custom-light: #7e94e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6bd3",
  "rgb": {
    "r": 42,
    "g": 107,
    "b": 211
  },
  "hsl": {
    "h": 216.923,
    "s": 66.798,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54508,
    "c": 0.17364,
    "h": 259.6
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#2A6BD3
secondary
#D3B586
accent
#A83EEA
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2A6BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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