#2A6BBA#2A6BBA

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

Color values

HEX#2A6BBA
RGBrgb(42, 107, 186)
HSLhsl(213, 63%, 45%)
HSVhsv(213, 77%, 73%)
CMYKcmyk(77.4%, 42.5%, 0%, 27.1%)
CIE-LABlab(45.01, 7.65, -47.50)
CIE-LCHlch(45.01, 48.12, 279.15°)
OKLaboklab(52.79% -0.0356 -0.1359)
OKLCHoklch(52.79% 0.141 255.3)
XYZxyz(15.0722, 14.5510, 48.4591)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6BBA #BA792A
analogous
#2AB3BA #2A6BBA #312ABA
triadic
#2A6BBA #BA2A6B #6BBA2A
tetradic
#2A6BBA #BA2AB3 #BA792A #2ABA31
square
#2A6BBA #BA2AB3 #BA792A #2ABA31
split-complementary
#2A6BBA #BA312A #B3BA2A
monochromatic
#133256 #1F4E88 #2A6BBA #4B8AD6 #7DAAE2

Accessibility & contrast

On white

5.37
#2A6BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A6BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6BBA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6BBA#FFFFFF#000000##FFFFFF
##2A6BBA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4472BD
Deuteranopia (green-blind)
#2A64B8
Tritanopia (blue-blind)
#007E89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a6bba;
/* rgb */ color: rgb(42, 107, 186);
/* oklch */ color: oklch(52.8% 0.141 255.3);
Tailwind
colors: {
  custom: {
    50: '#7994cf',
    500: '#2a6bba',
    950: '#000000',
  },
}
SCSS
$custom: #2a6bba;
$custom-light: #7994cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6bba",
  "rgb": {
    "r": 42,
    "g": 107,
    "b": 186
  },
  "hsl": {
    "h": 212.917,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.14053,
    "h": 255.3
  },
  "luminance": 0.14553
}

Semantic roles & 50–950 ramp

primary
#2A6BBA
secondary
#CAA476
accent
#9C42E6
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2A6BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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