#2A6CCA#2A6CCA

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

Color values

HEX#2A6CCA
RGBrgb(42, 108, 202)
HSLhsl(215, 66%, 48%)
HSVhsv(215, 79%, 79%)
CMYKcmyk(79.2%, 46.5%, 0%, 20.8%)
CIE-LABlab(46.28, 13.10, -54.70)
CIE-LCHlch(46.28, 56.25, 283.47°)
OKLaboklab(54.09% -0.0334 -0.1571)
OKLCHoklch(54.09% 0.161 258)
XYZxyz(16.9742, 15.4796, 57.9589)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CCA #CA882A
analogous
#2ABCCA #2A6CCA #382ACA
triadic
#2A6CCA #CA2A6C #6CCA2A
tetradic
#2A6CCA #CA2ABC #CA882A #2ACA38
square
#2A6CCA #CA2ABC #CA882A #2ACA38
split-complementary
#2A6CCA #CA382A #BCCA2A
monochromatic
#153665 #1F5197 #2A6CCA #558DDC #88AFE6

Accessibility & contrast

On white

5.13
#2A6CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A6CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6CCA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6CCA#FFFFFF#000000##FFFFFF
##2A6CCA1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3975CE
Deuteranopia (green-blind)
#0A67C8
Tritanopia (blue-blind)
#008291
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a6cca;
/* rgb */ color: rgb(42, 108, 202);
/* oklch */ color: oklch(54.1% 0.161 258.0);
Tailwind
colors: {
  custom: {
    50: '#7c95db',
    500: '#2a6cca',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cca;
$custom-light: #7c95db;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cca",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 202
  },
  "hsl": {
    "h": 215.25,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54086,
    "c": 0.1606,
    "h": 258
  },
  "luminance": 0.15482
}

Semantic roles & 50–950 ramp

primary
#2A6CCA
secondary
#D0AF80
accent
#A33FE9
background
#F8F9FD
surface
#EFF1FB
border
#CACBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2A6CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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