#2A5186#2A5186

#2A5186 is a dark, moderate cyan. Relative luminance 0.081; OKLCH L 43.4% C 0.099 H 256.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2A5186
RGBrgb(42, 81, 134)
HSLhsl(215, 52%, 35%)
HSVhsv(215, 69%, 53%)
CMYKcmyk(68.7%, 39.6%, 0%, 47.5%)
CIE-LABlab(34.19, 4.61, -33.75)
CIE-LCHlch(34.19, 34.06, 277.77°)
OKLaboklab(43.38% -0.0228 -0.096)
OKLCHoklch(43.38% 0.099 256.6)
XYZxyz(8.1988, 8.0975, 23.6805)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5186 #865F2A
analogous
#2A7F86 #2A5186 #312A86
triadic
#2A5186 #862A51 #51862A
tetradic
#2A5186 #862A7F #865F2A #2A8631
square
#2A5186 #862A7F #865F2A #2A8631
split-complementary
#2A5186 #86312A #7F862A
monochromatic
#0D1929 #1B3557 #2A5186 #396DB5 #5E8DCD

Accessibility & contrast

On white

8.02
#2A5186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2A5186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5186
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5186#FFFFFF#000000##FFFFFF
##2A51861.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395588
Deuteranopia (green-blind)
#2C4C85
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5186;
/* rgb */ color: rgb(42, 81, 134);
/* oklch */ color: oklch(43.4% 0.099 256.6);
Tailwind
colors: {
  custom: {
    50: '#6e81a9',
    500: '#2a5186',
    950: '#000000',
  },
}
SCSS
$custom: #2a5186;
$custom-light: #6e81a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5186",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 214.565,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43375,
    "c": 0.09868,
    "h": 256.6
  },
  "luminance": 0.08098
}

Semantic roles & 50–950 ramp

primary
#2A5186
secondary
#B28D5A
accent
#9F4CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5186

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

Preview Lab → · Contrast checker → · Palette generator →

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