#2A4E7D#2A4E7D

#2A4E7D is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.1% C 0.089 H 255.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4E7D
RGBrgb(42, 78, 125)
HSLhsl(214, 50%, 33%)
HSVhsv(214, 66%, 49%)
CMYKcmyk(66.4%, 37.6%, 0%, 51%)
CIE-LABlab(32.75, 3.19, -30.47)
CIE-LCHlch(32.75, 30.64, 275.98°)
OKLaboklab(42.09% -0.0219 -0.0865)
OKLCHoklch(42.09% 0.089 255.8)
XYZxyz(7.3796, 7.4210, 20.4415)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E7D #7D592A
analogous
#2A777D #2A4E7D #2F2A7D
triadic
#2A4E7D #7D2A4E #4E7D2A
tetradic
#2A4E7D #7D2A77 #7D592A #2A7D2F
square
#2A4E7D #7D2A77 #7D592A #2A7D2F
split-complementary
#2A4E7D #7D2F2A #777D2A
monochromatic
#0B1521 #1B314F #2A4E7D #396BAB #5A89C8

Accessibility & contrast

On white

8.45
#2A4E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A4E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E7D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E7D#FFFFFF#000000##FFFFFF
##2A4E7D1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517F
Deuteranopia (green-blind)
#2E497C
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4e7d;
/* rgb */ color: rgb(42, 78, 125);
/* oklch */ color: oklch(42.1% 0.089 255.8);
Tailwind
colors: {
  custom: {
    50: '#6d7fa3',
    500: '#2a4e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e7d;
$custom-light: #6d7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e7d",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 125
  },
  "hsl": {
    "h": 213.976,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42088,
    "c": 0.08919,
    "h": 255.8
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#2A4E7D
secondary
#AD8756
accent
#9D4FD9
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #2A4E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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