#2A4077#2A4077

#2A4077 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.098 H 265.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2A4077
RGBrgb(42, 64, 119)
HSLhsl(223, 48%, 32%)
HSVhsv(223, 65%, 47%)
CMYKcmyk(64.7%, 46.2%, 0%, 53.3%)
CIE-LABlab(28.09, 10.33, -34.13)
CIE-LCHlch(28.09, 35.66, 286.85°)
OKLaboklab(38.37% -0.0074 -0.0974)
OKLCHoklch(38.37% 0.098 265.6)
XYZxyz(6.1169, 5.4904, 18.1866)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4077 #77612A
analogous
#2A6777 #2A4077 #3B2A77
triadic
#2A4077 #772A40 #40772A
tetradic
#2A4077 #772A67 #77612A #2A773B
square
#2A4077 #772A67 #77612A #2A773B
split-complementary
#2A4077 #773B2A #67772A
monochromatic
#0A0F1D #1A284A #2A4077 #3A58A4 #5876C4

Accessibility & contrast

On white

10.01
#2A4077 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A4077 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4077
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4077#FFFFFF#000000##FFFFFF
##2A40771.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264679
Deuteranopia (green-blind)
#1A3F76
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a4077;
/* rgb */ color: rgb(42, 64, 119);
/* oklch */ color: oklch(38.4% 0.098 265.6);
Tailwind
colors: {
  custom: {
    50: '#6c749e',
    500: '#2a4077',
    950: '#000000',
  },
}
SCSS
$custom: #2a4077;
$custom-light: #6c749e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4077",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 119
  },
  "hsl": {
    "h": 222.857,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38365,
    "c": 0.09765,
    "h": 265.6
  },
  "luminance": 0.05491
}

Semantic roles & 50–950 ramp

primary
#2A4077
secondary
#A99154
accent
#B150D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4077

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

Preview Lab → · Contrast checker → · Palette generator →

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