#2A6CDF#2A6CDF

#2A6CDF is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.6% C 0.188 H 260.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2A6CDF
RGBrgb(42, 108, 223)
HSLhsl(218, 74%, 52%)
HSVhsv(218, 81%, 87%)
CMYKcmyk(81.2%, 51.6%, 0%, 12.5%)
CIE-LABlab(47.68, 21.08, -64.42)
CIE-LCHlch(47.68, 67.78, 288.12°)
OKLaboklab(55.6% -0.0304 -0.1857)
OKLCHoklch(55.6% 0.188 260.7)
XYZxyz(19.6319, 16.5427, 71.9561)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CDF #DF9D2A
analogous
#2AC6DF #2A6CDF #432ADF
triadic
#2A6CDF #DF2A6C #6CDF2A
tetradic
#2A6CDF #DF2AC6 #DF9D2A #2ADF43
square
#2A6CDF #DF2AC6 #DF9D2A #2ADF43
split-complementary
#2A6CDF #DF432A #C6DF2A
monochromatic
#13397C #1B52B1 #2A6CDF #5F91E7 #94B5EF

Accessibility & contrast

On white

4.87
#2A6CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2A6CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6CDF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6CDF#FFFFFF#000000##FFFFFF
##2A6CDF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A7AE3
Deuteranopia (green-blind)
#0069DD
Tritanopia (blue-blind)
#00889B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a6cdf;
/* rgb */ color: rgb(42, 108, 223);
/* oklch */ color: oklch(55.6% 0.188 260.7);
Tailwind
colors: {
  custom: {
    50: '#8195ea',
    500: '#2a6cdf',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cdf;
$custom-light: #8195ea;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cdf",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 223
  },
  "hsl": {
    "h": 218.122,
    "s": 73.878,
    "l": 51.961
  },
  "oklch": {
    "l": 0.556,
    "c": 0.18815,
    "h": 260.7
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#2A6CDF
secondary
#DABD8B
accent
#AD37F1
background
#F8F9FE
surface
#F0F1FD
border
#CBCBD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2A6CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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