#2A4079#2A4079

#2A4079 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.101 H 266.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A4079
RGBrgb(42, 64, 121)
HSLhsl(223, 48%, 32%)
HSVhsv(223, 65%, 47%)
CMYKcmyk(65.3%, 47.1%, 0%, 52.5%)
CIE-LABlab(28.22, 11.09, -35.18)
CIE-LCHlch(28.22, 36.89, 287.50°)
OKLaboklab(38.51% -0.0071 -0.1005)
OKLCHoklch(38.51% 0.101 266)
XYZxyz(6.2382, 5.5390, 18.8258)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4079 #79632A
analogous
#2A6879 #2A4079 #3C2A79
triadic
#2A4079 #792A40 #40792A
tetradic
#2A4079 #792A68 #79632A #2A793C
square
#2A4079 #792A68 #79632A #2A793C
split-complementary
#2A4079 #793C2A #68792A
monochromatic
#0A101E #1A284C #2A4079 #3A58A6 #5877C5

Accessibility & contrast

On white

9.96
#2A4079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A4079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4079
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4079#FFFFFF#000000##FFFFFF
##2A40791.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467B
Deuteranopia (green-blind)
#183F78
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4079;
/* rgb */ color: rgb(42, 64, 121);
/* oklch */ color: oklch(38.5% 0.101 266.0);
Tailwind
colors: {
  custom: {
    50: '#6c74a0',
    500: '#2a4079',
    950: '#000000',
  },
}
SCSS
$custom: #2a4079;
$custom-light: #6c74a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4079",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 121
  },
  "hsl": {
    "h": 223.291,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38506,
    "c": 0.10071,
    "h": 266
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#2A4079
secondary
#AB9354
accent
#B250D8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2A4079

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

Preview Lab → · Contrast checker → · Palette generator →

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