#2A6BAB#2A6BAB

#2A6BAB is a mid, vivid cyan. Relative luminance 0.139; OKLCH L 51.8% C 0.121 H 251.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#2A6BAB
RGBrgb(42, 107, 171)
HSLhsl(210, 61%, 42%)
HSVhsv(210, 75%, 67%)
CMYKcmyk(75.4%, 37.4%, 0%, 32.9%)
CIE-LABlab(44.16, 1.97, -40.11)
CIE-LCHlch(44.16, 40.16, 272.82°)
OKLaboklab(51.84% -0.0392 -0.1142)
OKLCHoklch(51.84% 0.121 251.1)
XYZxyz(13.5605, 13.9464, 40.4974)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6BAB #AB6A2A
analogous
#2AABAA #2A6BAB #2A2BAB
triadic
#2A6BAB #AB2A6B #6BAB2A
tetradic
#2A6BAB #AA2AAB #AB6A2A #2BAB2A
square
#2A6BAB #AA2AAB #AB6A2A #2BAB2A
split-complementary
#2A6BAB #AB2A2B #ABAA2A
monochromatic
#122E49 #1E4C7A #2A6BAB #428AD1 #73A8DD

Accessibility & contrast

On white

5.54
#2A6BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#2A6BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6BAB
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6BAB#FFFFFF#000000##FFFFFF
##2A6BAB1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6FAE
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#007A83
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a6bab;
/* rgb */ color: rgb(42, 107, 171);
/* oklch */ color: oklch(51.8% 0.121 251.1);
Tailwind
colors: {
  custom: {
    50: '#7595c4',
    500: '#2a6bab',
    950: '#000000',
  },
}
SCSS
$custom: #2a6bab;
$custom-light: #7595c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6bab",
  "rgb": {
    "r": 42,
    "g": 107,
    "b": 171
  },
  "hsl": {
    "h": 209.767,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51839,
    "c": 0.12078,
    "h": 251.1
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#2A6BAB
secondary
#C4986D
accent
#9344E4
background
#F7F9FC
surface
#EEF1F8
border
#C9CBD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A6BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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