#2A6DBA#2A6DBA

#2A6DBA is a mid, vivid cyan. Relative luminance 0.150; OKLCH L 53.2% C 0.138 H 254.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A6DBA
RGBrgb(42, 109, 186)
HSLhsl(212, 63%, 45%)
HSVhsv(212, 77%, 73%)
CMYKcmyk(77.4%, 41.4%, 0%, 27.1%)
CIE-LABlab(45.60, 6.39, -46.57)
CIE-LCHlch(45.60, 47.01, 277.81°)
OKLaboklab(53.24% -0.0374 -0.1332)
OKLCHoklch(53.24% 0.138 254.3)
XYZxyz(15.2831, 14.9729, 48.5294)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6DBA #BA772A
analogous
#2AB5BA #2A6DBA #2F2ABA
triadic
#2A6DBA #BA2A6D #6DBA2A
tetradic
#2A6DBA #BA2AB5 #BA772A #2ABA2F
square
#2A6DBA #BA2AB5 #BA772A #2ABA2F
split-complementary
#2A6DBA #BA2F2A #B5BA2A
monochromatic
#133256 #1F5088 #2A6DBA #4B8CD6 #7DACE2

Accessibility & contrast

On white

5.26
#2A6DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A6DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6DBA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6DBA#FFFFFF#000000##FFFFFF
##2A6DBA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4773BD
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#007F8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a6dba;
/* rgb */ color: rgb(42, 109, 186);
/* oklch */ color: oklch(53.2% 0.138 254.3);
Tailwind
colors: {
  custom: {
    50: '#7996cf',
    500: '#2a6dba',
    950: '#000000',
  },
}
SCSS
$custom: #2a6dba;
$custom-light: #7996cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6dba",
  "rgb": {
    "r": 42,
    "g": 109,
    "b": 186
  },
  "hsl": {
    "h": 212.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5324,
    "c": 0.1383,
    "h": 254.3
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A6DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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