#2A5284#2A5284

#2A5284 is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.095 H 255.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5284
RGBrgb(42, 82, 132)
HSLhsl(213, 52%, 34%)
HSVhsv(213, 68%, 52%)
CMYKcmyk(68.2%, 37.9%, 0%, 48.2%)
CIE-LABlab(34.38, 3.20, -32.21)
CIE-LCHlch(34.38, 32.37, 275.67°)
OKLaboklab(43.49% -0.0244 -0.0915)
OKLCHoklch(43.49% 0.095 255.1)
XYZxyz(8.1355, 8.1920, 22.9778)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5284 #845C2A
analogous
#2A7F84 #2A5284 #2F2A84
triadic
#2A5284 #842A52 #52842A
tetradic
#2A5284 #842A7F #845C2A #2A842F
square
#2A5284 #842A7F #845C2A #2A842F
split-complementary
#2A5284 #842F2A #7F842A
monochromatic
#0C1827 #1B3556 #2A5284 #396FB2 #5D8ECB

Accessibility & contrast

On white

7.96
#2A5284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5284
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5284#FFFFFF#000000##FFFFFF
##2A52841.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5586
Deuteranopia (green-blind)
#2F4D83
Tritanopia (blue-blind)
#005E64
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5284;
/* rgb */ color: rgb(42, 82, 132);
/* oklch */ color: oklch(43.5% 0.095 255.1);
Tailwind
colors: {
  custom: {
    50: '#6e82a8',
    500: '#2a5284',
    950: '#000000',
  },
}
SCSS
$custom: #2a5284;
$custom-light: #6e82a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5284",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 132
  },
  "hsl": {
    "h": 213.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43489,
    "c": 0.09469,
    "h": 255.1
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#2A5284
secondary
#B18A59
accent
#9C4DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A5284

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

Preview Lab → · Contrast checker → · Palette generator →

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