#2A6CBA#2A6CBA

#2A6CBA is a mid, vivid cyan. Relative luminance 0.148; OKLCH L 53.0% C 0.139 H 254.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A6CBA
RGBrgb(42, 108, 186)
HSLhsl(213, 63%, 45%)
HSVhsv(213, 77%, 73%)
CMYKcmyk(77.4%, 41.9%, 0%, 27.1%)
CIE-LABlab(45.30, 7.02, -47.04)
CIE-LCHlch(45.30, 47.56, 278.48°)
OKLaboklab(53.01% -0.0365 -0.1345)
OKLCHoklch(53.01% 0.139 254.8)
XYZxyz(15.1770, 14.7608, 48.4941)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6CBA #BA782A
analogous
#2AB4BA #2A6CBA #302ABA
triadic
#2A6CBA #BA2A6C #6CBA2A
tetradic
#2A6CBA #BA2AB4 #BA782A #2ABA30
square
#2A6CBA #BA2AB4 #BA782A #2ABA30
split-complementary
#2A6CBA #BA302A #B4BA2A
monochromatic
#133256 #1F4F88 #2A6CBA #4B8BD6 #7DABE2

Accessibility & contrast

On white

5.31
#2A6CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A6CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6CBA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6CBA#FFFFFF#000000##FFFFFF
##2A6CBA1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4672BD
Deuteranopia (green-blind)
#2C65B8
Tritanopia (blue-blind)
#007E8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a6cba;
/* rgb */ color: rgb(42, 108, 186);
/* oklch */ color: oklch(53.0% 0.139 254.8);
Tailwind
colors: {
  custom: {
    50: '#7995cf',
    500: '#2a6cba',
    950: '#000000',
  },
}
SCSS
$custom: #2a6cba;
$custom-light: #7995cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6cba",
  "rgb": {
    "r": 42,
    "g": 108,
    "b": 186
  },
  "hsl": {
    "h": 212.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53012,
    "c": 0.13941,
    "h": 254.8
  },
  "luminance": 0.14763
}

Semantic roles & 50–950 ramp

primary
#2A6CBA
secondary
#CAA376
accent
#9B42E6
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2A6CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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