#2A5FA8#2A5FA8

#2A5FA8 is a mid, vivid cyan. Relative luminance 0.115; OKLCH L 48.9% C 0.130 H 257.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2A5FA8
RGBrgb(42, 95, 168)
HSLhsl(215, 60%, 41%)
HSVhsv(215, 75%, 66%)
CMYKcmyk(75%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.41, 8.45, -44.31)
CIE-LCHlch(40.41, 45.11, 280.79°)
OKLaboklab(48.87% -0.0288 -0.1268)
OKLCHoklch(48.87% 0.13 257.2)
XYZxyz(12.1123, 11.5025, 38.6200)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FA8 #A8732A
analogous
#2A9EA8 #2A5FA8 #342AA8
triadic
#2A5FA8 #A82A5F #5FA82A
tetradic
#2A5FA8 #A82A9E #A8732A #2AA834
square
#2A5FA8 #A82A9E #A8732A #2AA834
split-complementary
#2A5FA8 #A8342A #9EA82A
monochromatic
#122846 #1E4377 #2A5FA8 #407CCF #719EDB

Accessibility & contrast

On white

6.36
#2A5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2A5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FA8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FA8#FFFFFF#000000##FFFFFF
##2A5FA81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AB
Deuteranopia (green-blind)
#245AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5fa8;
/* rgb */ color: rgb(42, 95, 168);
/* oklch */ color: oklch(48.9% 0.130 257.2);
Tailwind
colors: {
  custom: {
    50: '#758bc2',
    500: '#2a5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fa8;
$custom-light: #758bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fa8",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 214.762,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48867,
    "c": 0.12999,
    "h": 257.2
  },
  "luminance": 0.11504
}

Semantic roles & 50–950 ramp

primary
#2A5FA8
secondary
#C39E6B
accent
#A045E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2A5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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