#2A479E#2A479E

#2A479E is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.9% C 0.146 H 266.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2A479E
RGBrgb(42, 71, 158)
HSLhsl(225, 58%, 39%)
HSVhsv(225, 73%, 62%)
CMYKcmyk(73.4%, 55.1%, 0%, 38%)
CIE-LABlab(32.85, 20.50, -50.52)
CIE-LCHlch(32.85, 54.52, 292.08°)
OKLaboklab(42.86% -0.0093 -0.1455)
OKLCHoklch(42.86% 0.146 266.3)
XYZxyz(9.3775, 7.4664, 33.2881)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A479E #9E812A
analogous
#2A819E #2A479E #472A9E
triadic
#2A479E #9E2A47 #479E2A
tetradic
#2A479E #9E2A81 #9E812A #2A9E47
square
#2A479E #9E2A81 #9E812A #2A9E47
split-complementary
#2A479E #9E472A #819E2A
monochromatic
#101C3D #1D316E #2A479E #3A5FCB #6B86D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A479E#FFFFFF#000000##FFFFFF
##2A479E1.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)
#0053A1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a479e;
/* rgb */ color: rgb(42, 71, 158);
/* oklch */ color: oklch(42.9% 0.146 266.3);
Tailwind
colors: {
  custom: {
    50: '#7479bb',
    500: '#2a479e',
    950: '#000000',
  },
}
SCSS
$custom: #2a479e;
$custom-light: #7479bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a479e",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 225,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42858,
    "c": 0.14576,
    "h": 266.3
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#2A479E
secondary
#BEA866
accent
#BB47E1
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2A479E

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

Preview Lab → · Contrast checker → · Palette generator →

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