#2A5F8F#2A5F8F

#2A5F8F is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.3% C 0.096 H 248.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2A5F8F
RGBrgb(42, 95, 143)
HSLhsl(209, 55%, 36%)
HSVhsv(209, 71%, 56%)
CMYKcmyk(70.6%, 33.6%, 0%, 43.9%)
CIE-LABlab(39.00, -1.00, -31.61)
CIE-LCHlch(39.00, 31.63, 268.19°)
OKLaboklab(47.3% -0.0351 -0.0896)
OKLCHoklch(47.3% 0.096 248.6)
XYZxyz(10.0031, 10.6588, 27.5114)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F8F #8F5A2A
analogous
#2A8F8D #2A5F8F #2A2C8F
triadic
#2A5F8F #8F2A5F #5F8F2A
tetradic
#2A5F8F #8D2A8F #8F5A2A #2C8F2A
square
#2A5F8F #8D2A8F #8F5A2A #2C8F2A
split-complementary
#2A5F8F #8F2A2C #8F8D2A
monochromatic
#0E2030 #1C4060 #2A5F8F #387EBE #629CD1

Accessibility & contrast

On white

6.70
#2A5F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A5F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5F8F
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F8F#FFFFFF#000000##FFFFFF
##2A5F8F1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6191
Deuteranopia (green-blind)
#3B588E
Tritanopia (blue-blind)
#006A70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5f8f;
/* rgb */ color: rgb(42, 95, 143);
/* oklch */ color: oklch(47.3% 0.096 248.6);
Tailwind
colors: {
  custom: {
    50: '#708cb0',
    500: '#2a5f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f8f;
$custom-light: #708cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f8f",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 143
  },
  "hsl": {
    "h": 208.515,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.09622,
    "h": 248.6
  },
  "luminance": 0.1066
}

Semantic roles & 50–950 ramp

primary
#2A5F8F
secondary
#B7885E
accent
#904ADE
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #2A5F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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