#2A6798#2A6798

#2A6798 is a mid, moderate cyan. Relative luminance 0.125; OKLCH L 49.8% C 0.100 H 246.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2A6798
RGBrgb(42, 103, 152)
HSLhsl(207, 57%, 38%)
HSVhsv(207, 72%, 60%)
CMYKcmyk(72.4%, 32.2%, 0%, 40.4%)
CIE-LABlab(41.94, -2.64, -32.39)
CIE-LCHlch(41.94, 32.49, 265.35°)
OKLaboklab(49.77% -0.0407 -0.0917)
OKLCHoklch(49.77% 0.1 246.1)
XYZxyz(11.4704, 12.4585, 31.4999)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6798 #985B2A
analogous
#2A9892 #2A6798 #2A3098
triadic
#2A6798 #982A67 #67982A
tetradic
#2A6798 #922A98 #985B2A #30982A
square
#2A6798 #922A98 #985B2A #30982A
split-complementary
#2A6798 #982A30 #98922A
monochromatic
#102638 #1D4768 #2A6798 #3787C8 #67A4D5

Accessibility & contrast

On white

6.01
#2A6798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2A6798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6798
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6798#FFFFFF#000000##FFFFFF
##2A67981.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51699A
Deuteranopia (green-blind)
#415E97
Tritanopia (blue-blind)
#007378
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a6798;
/* rgb */ color: rgb(42, 103, 152);
/* oklch */ color: oklch(49.8% 0.100 246.1);
Tailwind
colors: {
  custom: {
    50: '#7292b6',
    500: '#2a6798',
    950: '#000000',
  },
}
SCSS
$custom: #2a6798;
$custom-light: #7292b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6798",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 206.727,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.10035,
    "h": 246.1
  },
  "luminance": 0.1246
}

Semantic roles & 50–950 ramp

primary
#2A6798
secondary
#BB8A62
accent
#8C48E0
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #2A6798

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

Preview Lab → · Contrast checker → · Palette generator →

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