#2A6CB7#2A6CB7

#2A6CB7 is a mid, vivid cyan. Relative luminance 0.146; OKLCH L 52.8% C 0.135 H 254.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6CB7
RGBrgb(42, 108, 183)
HSLhsl(212, 63%, 44%)
HSVhsv(212, 77%, 72%)
CMYKcmyk(77%, 41%, 0%, 28.2%)
CIE-LABlab(45.13, 5.88, -45.57)
CIE-LCHlch(45.13, 45.95, 277.35°)
OKLaboklab(52.82% -0.0372 -0.1302)
OKLCHoklch(52.82% 0.135 254.1)
XYZxyz(14.8615, 14.6345, 46.8321)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CB7 #B7752A
analogous
#2AB3B7 #2A6CB7 #2F2AB7
triadic
#2A6CB7 #B72A6C #6CB72A
tetradic
#2A6CB7 #B72AB3 #B7752A #2AB72F
square
#2A6CB7 #B72AB3 #B7752A #2AB72F
split-complementary
#2A6CB7 #B72F2A #B3B72A
monochromatic
#133153 #1F4F85 #2A6CB7 #498BD5 #7BAAE1

Accessibility & contrast

On white

5.35
#2A6CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A6CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6CB7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6CB7#FFFFFF#000000##FFFFFF
##2A6CB71.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4872BA
Deuteranopia (green-blind)
#3065B6
Tritanopia (blue-blind)
#007E88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a6cb7;
/* rgb */ color: rgb(42, 108, 183);
/* oklch */ color: oklch(52.8% 0.135 254.1);
Tailwind
colors: {
  custom: {
    50: '#7895cd',
    500: '#2a6cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cb7;
$custom-light: #7895cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cb7",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 183
  },
  "hsl": {
    "h": 211.915,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52819,
    "c": 0.13545,
    "h": 254.1
  },
  "luminance": 0.14636
}

Semantic roles & 50–950 ramp

primary
#2A6CB7
secondary
#C9A174
accent
#9942E6
background
#F7F9FC
surface
#EEF1F9
border
#C9CBD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A6CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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