#2A4F7E#2A4F7E

#2A4F7E is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.4% C 0.089 H 255.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4F7E
RGBrgb(42, 79, 126)
HSLhsl(214, 50%, 33%)
HSVhsv(214, 67%, 49%)
CMYKcmyk(66.7%, 37.3%, 0%, 50.6%)
CIE-LABlab(33.11, 2.91, -30.51)
CIE-LCHlch(33.11, 30.65, 275.45°)
OKLaboklab(42.39% -0.0227 -0.0866)
OKLCHoklch(42.39% 0.09 255.3)
XYZxyz(7.5154, 7.5898, 20.8035)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F7E #7E592A
analogous
#2A797E #2A4F7E #2F2A7E
triadic
#2A4F7E #7E2A4F #4F7E2A
tetradic
#2A4F7E #7E2A79 #7E592A #2A7E2F
square
#2A4F7E #7E2A79 #7E592A #2A7E2F
split-complementary
#2A4F7E #7E2F2A #797E2A
monochromatic
#0B1522 #1B3250 #2A4F7E #396CAC #5A8BC8

Accessibility & contrast

On white

8.34
#2A4F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A4F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F7E
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F7E#FFFFFF#000000##FFFFFF
##2A4F7E1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5280
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4f7e;
/* rgb */ color: rgb(42, 79, 126);
/* oklch */ color: oklch(42.4% 0.089 255.3);
Tailwind
colors: {
  custom: {
    50: '#6d80a3',
    500: '#2a4f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f7e;
$custom-light: #6d80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f7e",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 126
  },
  "hsl": {
    "h": 213.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42392,
    "c": 0.0895,
    "h": 255.3
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#2A4F7E
secondary
#AE8756
accent
#9C4EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #2A4F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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