#2A6CD3#2A6CD3

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

Color values

HEX#2A6CD3
RGBrgb(42, 108, 211)
HSLhsl(217, 67%, 50%)
HSVhsv(217, 80%, 83%)
CMYKcmyk(80.1%, 48.8%, 0%, 17.3%)
CIE-LABlab(46.87, 16.53, -58.91)
CIE-LCHlch(46.87, 61.19, 285.67°)
OKLaboklab(54.72% -0.032 -0.1695)
OKLCHoklch(54.72% 0.172 259.3)
XYZxyz(18.0710, 15.9183, 63.7355)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CD3 #D3912A
analogous
#2AC1D3 #2A6CD3 #3D2AD3
triadic
#2A6CD3 #D32A6C #6CD32A
tetradic
#2A6CD3 #D32AC1 #D3912A #2AD33D
square
#2A6CD3 #D32AC1 #D3912A #2AD33D
split-complementary
#2A6CD3 #D33D2A #C1D32A
monochromatic
#16386D #2052A0 #2A6CD3 #5C8FDE #8FB2E9

Accessibility & contrast

On white

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

On black

4.18
#2A6CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A6CD3#FFFFFF#000000##FFFFFF
##2A6CD31.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F77D7
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#008595
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a6cd3;
/* rgb */ color: rgb(42, 108, 211);
/* oklch */ color: oklch(54.7% 0.172 259.3);
Tailwind
colors: {
  custom: {
    50: '#7e95e1',
    500: '#2a6cd3',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cd3;
$custom-light: #7e95e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cd3",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 211
  },
  "hsl": {
    "h": 216.568,
    "s": 66.798,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.17247,
    "h": 259.3
  },
  "luminance": 0.15921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A6CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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