#2A6CB9#2A6CB9

#2A6CB9 is a mid, vivid cyan. Relative luminance 0.147; OKLCH L 52.9% C 0.138 H 254.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2A6CB9
RGBrgb(42, 108, 185)
HSLhsl(212, 63%, 45%)
HSVhsv(212, 77%, 73%)
CMYKcmyk(77.3%, 41.6%, 0%, 27.5%)
CIE-LABlab(45.25, 6.64, -46.55)
CIE-LCHlch(45.25, 47.02, 278.11°)
OKLaboklab(52.95% -0.0367 -0.1331)
OKLCHoklch(52.95% 0.138 254.6)
XYZxyz(15.0711, 14.7184, 47.9362)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CB9 #B9772A
analogous
#2AB4B9 #2A6CB9 #302AB9
triadic
#2A6CB9 #B92A6C #6CB92A
tetradic
#2A6CB9 #B92AB4 #B9772A #2AB930
square
#2A6CB9 #B92AB4 #B9772A #2AB930
split-complementary
#2A6CB9 #B9302A #B4B92A
monochromatic
#133255 #1F4F87 #2A6CB9 #4A8BD6 #7CABE1

Accessibility & contrast

On white

5.32
#2A6CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2A6CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6CB9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6CB9#FFFFFF#000000##FFFFFF
##2A6CB91.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4672BC
Deuteranopia (green-blind)
#2E65B7
Tritanopia (blue-blind)
#007E89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a6cb9;
/* rgb */ color: rgb(42, 108, 185);
/* oklch */ color: oklch(52.9% 0.138 254.6);
Tailwind
colors: {
  custom: {
    50: '#7895ce',
    500: '#2a6cb9',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cb9;
$custom-light: #7895ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cb9",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 185
  },
  "hsl": {
    "h": 212.308,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.13809,
    "h": 254.6
  },
  "luminance": 0.1472
}

Semantic roles & 50–950 ramp

primary
#2A6CB9
secondary
#CAA375
accent
#9A42E6
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2A6CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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