#2A5A9C#2A5A9C

#2A5A9C is a mid, moderate cyan. Relative luminance 0.102; OKLCH L 46.9% C 0.119 H 257.1°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#2A5A9C
RGBrgb(42, 90, 156)
HSLhsl(215, 58%, 39%)
HSVhsv(215, 73%, 61%)
CMYKcmyk(73.1%, 42.3%, 0%, 38.8%)
CIE-LABlab(38.21, 7.10, -40.69)
CIE-LCHlch(38.21, 41.30, 279.90°)
OKLaboklab(46.92% -0.0267 -0.1162)
OKLCHoklch(46.92% 0.119 257.1)
XYZxyz(10.6096, 10.2037, 32.8564)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A9C #9C6C2A
analogous
#2A939C #2A5A9C #332A9C
triadic
#2A5A9C #9C2A5A #5A9C2A
tetradic
#2A5A9C #9C2A93 #9C6C2A #2A9C33
square
#2A5A9C #9C2A93 #9C6C2A #2A9C33
split-complementary
#2A5A9C #9C332A #939C2A
monochromatic
#10223C #1D3E6C #2A5A9C #3976CA #6A98D7

Accessibility & contrast

On white

6.91
#2A5A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A5A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5A9C
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A9C#FFFFFF#000000##FFFFFF
##2A5A9C1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B609F
Deuteranopia (green-blind)
#27559B
Tritanopia (blue-blind)
#006973
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a5a9c;
/* rgb */ color: rgb(42, 90, 156);
/* oklch */ color: oklch(46.9% 0.119 257.1);
Tailwind
colors: {
  custom: {
    50: '#7288b9',
    500: '#2a5a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a9c;
$custom-light: #7288b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a9c",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 156
  },
  "hsl": {
    "h": 214.737,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4692,
    "c": 0.11925,
    "h": 257.1
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#2A5A9C
secondary
#BD9865
accent
#A047E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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