#2A5895#2A5895

#2A5895 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 46.0% C 0.112 H 256.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2A5895
RGBrgb(42, 88, 149)
HSLhsl(214, 56%, 37%)
HSVhsv(214, 72%, 58%)
CMYKcmyk(71.8%, 40.9%, 0%, 41.6%)
CIE-LABlab(37.19, 5.73, -38.10)
CIE-LCHlch(37.19, 38.53, 278.55°)
OKLaboklab(46% -0.0263 -0.1087)
OKLCHoklch(46% 0.112 256.4)
XYZxyz(9.8674, 9.6406, 29.7687)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5895 #95672A
analogous
#2A8D95 #2A5895 #322A95
triadic
#2A5895 #952A58 #58952A
tetradic
#2A5895 #952A8D #95672A #2A9532
square
#2A5895 #952A8D #95672A #2A9532
split-complementary
#2A5895 #95322A #8D952A
monochromatic
#0F2036 #1D3C65 #2A5895 #3774C5 #6695D4

Accessibility & contrast

On white

7.17
#2A5895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A5895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5895
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5895#FFFFFF#000000##FFFFFF
##2A58951.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D97
Deuteranopia (green-blind)
#2B5394
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5895;
/* rgb */ color: rgb(42, 88, 149);
/* oklch */ color: oklch(46.0% 0.112 256.4);
Tailwind
colors: {
  custom: {
    50: '#7186b4',
    500: '#2a5895',
    950: '#000000',
  },
}
SCSS
$custom: #2a5895;
$custom-light: #7186b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5895",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 149
  },
  "hsl": {
    "h": 214.206,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.11181,
    "h": 256.4
  },
  "luminance": 0.09642
}

Semantic roles & 50–950 ramp

primary
#2A5895
secondary
#BA9461
accent
#9E48DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5895

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

Preview Lab → · Contrast checker → · Palette generator →

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