#2A5FA7#2A5FA7

#2A5FA7 is a mid, vivid cyan. Relative luminance 0.115; OKLCH L 48.8% C 0.129 H 257.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2A5FA7
RGBrgb(42, 95, 167)
HSLhsl(215, 60%, 41%)
HSVhsv(215, 75%, 65%)
CMYKcmyk(74.9%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.35, 8.07, -43.81)
CIE-LCHlch(40.35, 44.55, 280.43°)
OKLaboklab(48.8% -0.029 -0.1253)
OKLCHoklch(48.8% 0.129 257)
XYZxyz(12.0195, 11.4653, 38.1313)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FA7 #A7722A
analogous
#2A9DA7 #2A5FA7 #332AA7
triadic
#2A5FA7 #A72A5F #5FA72A
tetradic
#2A5FA7 #A72A9D #A7722A #2AA733
square
#2A5FA7 #A72A9D #A7722A #2AA733
split-complementary
#2A5FA7 #A7332A #9DA72A
monochromatic
#112745 #1E4376 #2A5FA7 #3F7CCF #709EDB

Accessibility & contrast

On white

6.38
#2A5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5FA7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FA7#FFFFFF#000000##FFFFFF
##2A5FA71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65AA
Deuteranopia (green-blind)
#255AA6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5fa7;
/* rgb */ color: rgb(42, 95, 167);
/* oklch */ color: oklch(48.8% 0.129 257.0);
Tailwind
colors: {
  custom: {
    50: '#758bc1',
    500: '#2a5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fa7;
$custom-light: #758bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fa7",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 214.56,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48801,
    "c": 0.12862,
    "h": 257
  },
  "luminance": 0.11467
}

Semantic roles & 50–950 ramp

primary
#2A5FA7
secondary
#C29D6B
accent
#A045E3
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2A5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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