#2A6781#2A6781

#2A6781 is a mid, moderate cyan. Relative luminance 0.118; OKLCH L 48.6% C 0.075 H 229.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2A6781
RGBrgb(42, 103, 129)
HSLhsl(198, 51%, 34%)
HSVhsv(198, 67%, 51%)
CMYKcmyk(67.4%, 20.2%, 0%, 49.4%)
CIE-LABlab(40.86, -10.89, -20.25)
CIE-LCHlch(40.86, 22.99, 241.72°)
OKLaboklab(48.56% -0.0488 -0.0566)
OKLCHoklch(48.56% 0.075 229.3)
XYZxyz(9.7660, 11.7767, 22.5231)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6781 #81442A
analogous
#2A816F #2A6781 #2A3B81
triadic
#2A6781 #812A67 #67812A
tetradic
#2A6781 #6F2A81 #81442A #3B812A
square
#2A6781 #6F2A81 #81442A #3B812A
split-complementary
#2A6781 #812A3B #816F2A
monochromatic
#0C1D25 #1B4253 #2A6781 #398CAF #5CA9CA

Accessibility & contrast

On white

6.26
#2A6781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2A6781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6781
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6781#FFFFFF#000000##FFFFFF
##2A67811.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6582
Deuteranopia (green-blind)
#4D5C81
Tritanopia (blue-blind)
#006E70
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a6781;
/* rgb */ color: rgb(42, 103, 129);
/* oklch */ color: oklch(48.6% 0.075 229.3);
Tailwind
colors: {
  custom: {
    50: '#6e92a5',
    500: '#2a6781',
    950: '#000000',
  },
}
SCSS
$custom: #2a6781;
$custom-light: #6e92a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6781",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 129
  },
  "hsl": {
    "h": 197.931,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.48558,
    "c": 0.07478,
    "h": 229.3
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#2A6781
secondary
#AF7257
accent
#784DDA
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080D0F
muted
#7B7D7F

Preview Lab

Preview with #2A6781

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

Preview Lab → · Contrast checker → · Palette generator →

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