#2A4E7F#2A4E7F

#2A4E7F is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.092 H 256.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4E7F
RGBrgb(42, 78, 127)
HSLhsl(215, 50%, 33%)
HSVhsv(215, 67%, 50%)
CMYKcmyk(66.9%, 38.6%, 0%, 50.2%)
CIE-LABlab(32.86, 3.94, -31.53)
CIE-LCHlch(32.86, 31.78, 277.12°)
OKLaboklab(42.21% -0.0213 -0.0896)
OKLCHoklch(42.21% 0.092 256.6)
XYZxyz(7.5086, 7.4726, 21.1212)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E7F #7F5B2A
analogous
#2A787F #2A4E7F #302A7F
triadic
#2A4E7F #7F2A4E #4E7F2A
tetradic
#2A4E7F #7F2A78 #7F5B2A #2A7F30
square
#2A4E7F #7F2A78 #7F5B2A #2A7F30
split-complementary
#2A4E7F #7F302A #787F2A
monochromatic
#0C1623 #1B3251 #2A4E7F #396AAD #5B89C9

Accessibility & contrast

On white

8.42
#2A4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2A4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E7F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E7F#FFFFFF#000000##FFFFFF
##2A4E7F1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2C4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4e7f;
/* rgb */ color: rgb(42, 78, 127);
/* oklch */ color: oklch(42.2% 0.092 256.6);
Tailwind
colors: {
  custom: {
    50: '#6d7fa4',
    500: '#2a4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e7f;
$custom-light: #6d7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e7f",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 214.588,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42212,
    "c": 0.09207,
    "h": 256.6
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#2A4E7F
secondary
#AE8957
accent
#9F4EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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