#2A4F81#2A4F81

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

Color values

HEX#2A4F81
RGBrgb(42, 79, 129)
HSLhsl(214, 51%, 34%)
HSVhsv(214, 67%, 51%)
CMYKcmyk(67.4%, 38.8%, 0%, 49.4%)
CIE-LABlab(33.28, 4.03, -32.10)
CIE-LCHlch(33.28, 32.35, 277.16°)
OKLaboklab(42.58% -0.0219 -0.0912)
OKLCHoklch(42.58% 0.094 256.5)
XYZxyz(7.7118, 7.6684, 21.8384)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F81 #815C2A
analogous
#2A7A81 #2A4F81 #302A81
triadic
#2A4F81 #812A4F #4F812A
tetradic
#2A4F81 #812A7A #815C2A #2A8130
square
#2A4F81 #812A7A #815C2A #2A8130
split-complementary
#2A4F81 #81302A #7A812A
monochromatic
#0C1625 #1B3353 #2A4F81 #396BAF #5C8ACA

Accessibility & contrast

On white

8.29
#2A4F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A4F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F81
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F81#FFFFFF#000000##FFFFFF
##2A4F811.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395383
Deuteranopia (green-blind)
#2D4B80
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4f81;
/* rgb */ color: rgb(42, 79, 129);
/* oklch */ color: oklch(42.6% 0.094 256.5);
Tailwind
colors: {
  custom: {
    50: '#6d80a6',
    500: '#2a4f81',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f81;
$custom-light: #6d80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f81",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 129
  },
  "hsl": {
    "h": 214.483,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.0938,
    "h": 256.5
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#2A4F81
secondary
#AF8A57
accent
#9E4DDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A4F81

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

Preview Lab → · Contrast checker → · Palette generator →

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