#2A4971#2A4971

#2A4971 is a dark, moderate cyan. Relative luminance 0.065; OKLCH L 40.1% C 0.077 H 255.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2A4971
RGBrgb(42, 73, 113)
HSLhsl(214, 46%, 30%)
HSVhsv(214, 63%, 44%)
CMYKcmyk(62.8%, 35.4%, 0%, 55.7%)
CIE-LABlab(30.52, 2.02, -26.49)
CIE-LCHlch(30.52, 26.57, 274.37°)
OKLaboklab(40.13% -0.0194 -0.0749)
OKLCHoklch(40.13% 0.077 255.5)
XYZxyz(6.3170, 6.4490, 16.5315)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4971 #71522A
analogous
#2A6C71 #2A4971 #2F2A71
triadic
#2A4971 #712A49 #49712A
tetradic
#2A4971 #712A6C #71522A #2A712F
square
#2A4971 #712A6C #71522A #2A712F
split-complementary
#2A4971 #712F2A #6C712A
monochromatic
#090F18 #192C44 #2A4971 #3B669E #5584C0

Accessibility & contrast

On white

9.17
#2A4971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4971
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4971#FFFFFF#000000##FFFFFF
##2A49711.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C73
Deuteranopia (green-blind)
#2F4570
Tritanopia (blue-blind)
#005257
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4971;
/* rgb */ color: rgb(42, 73, 113);
/* oklch */ color: oklch(40.1% 0.077 255.5);
Tailwind
colors: {
  custom: {
    50: '#6a7b9a',
    500: '#2a4971',
    950: '#000000',
  },
}
SCSS
$custom: #2a4971;
$custom-light: #6a7b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4971",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 113
  },
  "hsl": {
    "h": 213.803,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40132,
    "c": 0.07738,
    "h": 255.5
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#2A4971
secondary
#A38054
accent
#9C52D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4971

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

Preview Lab → · Contrast checker → · Palette generator →

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