#2A5F87#2A5F87

#2A5F87 is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 46.9% C 0.086 H 244.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2A5F87
RGBrgb(42, 95, 135)
HSLhsl(206, 53%, 35%)
HSVhsv(206, 69%, 53%)
CMYKcmyk(68.9%, 29.6%, 0%, 47.1%)
CIE-LABlab(38.59, -3.94, -27.41)
CIE-LCHlch(38.59, 27.69, 261.81°)
OKLaboklab(46.85% -0.0377 -0.0773)
OKLCHoklch(46.85% 0.086 244)
XYZxyz(9.4186, 10.4249, 24.4328)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F87 #87522A
analogous
#2A8780 #2A5F87 #2A3187
triadic
#2A5F87 #872A5F #5F872A
tetradic
#2A5F87 #802A87 #87522A #31872A
square
#2A5F87 #802A87 #87522A #31872A
split-complementary
#2A5F87 #872A31 #87802A
monochromatic
#0D1D2A #1B3E58 #2A5F87 #3980B6 #5E9DCD

Accessibility & contrast

On white

6.81
#2A5F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A5F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F87
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F87#FFFFFF#000000##FFFFFF
##2A5F871.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6089
Deuteranopia (green-blind)
#405786
Tritanopia (blue-blind)
#00696D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5f87;
/* rgb */ color: rgb(42, 95, 135);
/* oklch */ color: oklch(46.9% 0.086 244.0);
Tailwind
colors: {
  custom: {
    50: '#6f8caa',
    500: '#2a5f87',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f87;
$custom-light: #6f8caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f87",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 205.806,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46851,
    "c": 0.08604,
    "h": 244
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#2A5F87
secondary
#B3805A
accent
#8A4CDC
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2A5F87

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

Preview Lab → · Contrast checker → · Palette generator →

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