#2A4F82#2A4F82

#2A4F82 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.095 H 256.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2A4F82
RGBrgb(42, 79, 130)
HSLhsl(215, 51%, 34%)
HSVhsv(215, 68%, 51%)
CMYKcmyk(67.7%, 39.2%, 0%, 49%)
CIE-LABlab(33.34, 4.41, -32.63)
CIE-LCHlch(33.34, 32.92, 277.70°)
OKLaboklab(42.64% -0.0216 -0.0927)
OKLCHoklch(42.64% 0.095 256.9)
XYZxyz(7.7786, 7.6951, 22.1901)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F82 #825D2A
analogous
#2A7B82 #2A4F82 #312A82
triadic
#2A4F82 #822A4F #4F822A
tetradic
#2A4F82 #822A7B #825D2A #2A8231
square
#2A4F82 #822A7B #825D2A #2A8231
split-complementary
#2A4F82 #82312A #7B822A
monochromatic
#0C1725 #1B3354 #2A4F82 #396BB0 #5C8ACA

Accessibility & contrast

On white

8.27
#2A4F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2A4F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F82
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F82#FFFFFF#000000##FFFFFF
##2A4F821.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385384
Deuteranopia (green-blind)
#2C4B81
Tritanopia (blue-blind)
#005B62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4f82;
/* rgb */ color: rgb(42, 79, 130);
/* oklch */ color: oklch(42.6% 0.095 256.9);
Tailwind
colors: {
  custom: {
    50: '#6d80a6',
    500: '#2a4f82',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f82;
$custom-light: #6d80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f82",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 214.773,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42642,
    "c": 0.09524,
    "h": 256.9
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#2A4F82
secondary
#B08B58
accent
#9F4DDB
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4F82

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

Preview Lab → · Contrast checker → · Palette generator →

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