#2A6FAB#2A6FAB

#2A6FAB is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.8% C 0.117 H 248.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2A6FAB
RGBrgb(42, 111, 171)
HSLhsl(208, 61%, 42%)
HSVhsv(208, 75%, 67%)
CMYKcmyk(75.4%, 35.1%, 0%, 32.9%)
CIE-LABlab(45.36, -0.50, -38.21)
CIE-LCHlch(45.36, 38.21, 269.25°)
OKLaboklab(52.78% -0.043 -0.1086)
OKLCHoklch(52.78% 0.117 248.4)
XYZxyz(13.9872, 14.7998, 40.6397)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6FAB #AB662A
analogous
#2AABA7 #2A6FAB #2A2FAB
triadic
#2A6FAB #AB2A6F #6FAB2A
tetradic
#2A6FAB #A72AAB #AB662A #2FAB2A
square
#2A6FAB #A72AAB #AB662A #2FAB2A
split-complementary
#2A6FAB #AB2A2F #ABA72A
monochromatic
#122F49 #1E4F7A #2A6FAB #428ED1 #73ABDD

Accessibility & contrast

On white

5.30
#2A6FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2A6FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6FAB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6FAB#FFFFFF#000000##FFFFFF
##2A6FAB1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5372AE
Deuteranopia (green-blind)
#4166AA
Tritanopia (blue-blind)
#007D85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a6fab;
/* rgb */ color: rgb(42, 111, 171);
/* oklch */ color: oklch(52.8% 0.117 248.4);
Tailwind
colors: {
  custom: {
    50: '#7698c4',
    500: '#2a6fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a6fab;
$custom-light: #7698c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6fab",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 171
  },
  "hsl": {
    "h": 207.907,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.11681,
    "h": 248.4
  },
  "luminance": 0.14801
}

Semantic roles & 50–950 ramp

primary
#2A6FAB
secondary
#C4956D
accent
#8E44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2A6FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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