#2A5F97#2A5F97

#2A5F97 is a mid, moderate cyan. Relative luminance 0.109; OKLCH L 47.8% C 0.107 H 252.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#2A5F97
RGBrgb(42, 95, 151)
HSLhsl(211, 56%, 38%)
HSVhsv(211, 72%, 59%)
CMYKcmyk(72.2%, 37.1%, 0%, 40.8%)
CIE-LABlab(39.43, 1.99, -35.75)
CIE-LCHlch(39.43, 35.80, 273.19°)
OKLaboklab(47.78% -0.0329 -0.1016)
OKLCHoklch(47.78% 0.107 252.1)
XYZxyz(10.6309, 10.9099, 30.8177)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F97 #97622A
analogous
#2A9597 #2A5F97 #2C2A97
triadic
#2A5F97 #972A5F #5F972A
tetradic
#2A5F97 #972A95 #97622A #2A972C
square
#2A5F97 #972A95 #97622A #2A972C
split-complementary
#2A5F97 #972C2A #95972A
monochromatic
#0F2337 #1D4167 #2A5F97 #377DC7 #679CD5

Accessibility & contrast

On white

6.60
#2A5F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2A5F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F97
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F97#FFFFFF#000000##FFFFFF
##2A5F971.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466299
Deuteranopia (green-blind)
#365896
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5f97;
/* rgb */ color: rgb(42, 95, 151);
/* oklch */ color: oklch(47.8% 0.107 252.1);
Tailwind
colors: {
  custom: {
    50: '#718cb6',
    500: '#2a5f97',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f97;
$custom-light: #718cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f97",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 210.826,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.10683,
    "h": 252.1
  },
  "luminance": 0.10911
}

Semantic roles & 50–950 ramp

primary
#2A5F97
secondary
#BB9062
accent
#9648E0
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #2A5F97

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

Preview Lab → · Contrast checker → · Palette generator →

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