#2A5FA6#2A5FA6

#2A5FA6 is a mid, vivid cyan. Relative luminance 0.114; OKLCH L 48.7% C 0.127 H 256.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5FA6
RGBrgb(42, 95, 166)
HSLhsl(214, 60%, 41%)
HSVhsv(214, 75%, 65%)
CMYKcmyk(74.7%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.29, 7.68, -43.32)
CIE-LCHlch(40.29, 43.99, 280.06°)
OKLaboklab(48.73% -0.0292 -0.1238)
OKLCHoklch(48.73% 0.127 256.7)
XYZxyz(11.9275, 11.4285, 37.6463)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FA6 #A6712A
analogous
#2A9DA6 #2A5FA6 #332AA6
triadic
#2A5FA6 #A62A5F #5FA62A
tetradic
#2A5FA6 #A62A9D #A6712A #2AA633
square
#2A5FA6 #A62A9D #A6712A #2AA633
split-complementary
#2A5FA6 #A6332A #9DA62A
monochromatic
#112744 #1E4375 #2A5FA6 #3F7CCE #709DDB

Accessibility & contrast

On white

6.39
#2A5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FA6
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FA6#FFFFFF#000000##FFFFFF
##2A5FA61.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65A9
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#00707A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5fa6;
/* rgb */ color: rgb(42, 95, 166);
/* oklch */ color: oklch(48.7% 0.127 256.7);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2a5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fa6;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fa6",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 214.355,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48734,
    "c": 0.12725,
    "h": 256.7
  },
  "luminance": 0.1143
}

Semantic roles & 50–950 ramp

primary
#2A5FA6
secondary
#C29C6A
accent
#9F45E3
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2A5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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