#2A479A#2A479A

#2A479A is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.140 H 266.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2A479A
RGBrgb(42, 71, 154)
HSLhsl(224, 57%, 38%)
HSVhsv(224, 73%, 60%)
CMYKcmyk(72.7%, 53.9%, 0%, 39.6%)
CIE-LABlab(32.55, 18.96, -48.58)
CIE-LCHlch(32.55, 52.15, 291.32°)
OKLaboklab(42.54% -0.0096 -0.1398)
OKLCHoklch(42.54% 0.14 266.1)
XYZxyz(9.0388, 7.3309, 31.5042)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A479A #9A7D2A
analogous
#2A7F9A #2A479A #452A9A
triadic
#2A479A #9A2A47 #479A2A
tetradic
#2A479A #9A2A7F #9A7D2A #2A9A45
square
#2A479A #9A2A7F #9A7D2A #2A9A45
split-complementary
#2A479A #9A452A #7F9A2A
monochromatic
#101B3A #1D316A #2A479A #385EC9 #6885D6

Accessibility & contrast

On white

8.51
#2A479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A479A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A479A#FFFFFF#000000##FFFFFF
##2A479A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C529D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#005B69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a479a;
/* rgb */ color: rgb(42, 71, 154);
/* oklch */ color: oklch(42.5% 0.140 266.1);
Tailwind
colors: {
  custom: {
    50: '#7379b8',
    500: '#2a479a',
    950: '#000000',
  },
}
SCSS
$custom: #2a479a;
$custom-light: #7379b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a479a",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 224.464,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42539,
    "c": 0.14009,
    "h": 266.1
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#2A479A
secondary
#BCA563
accent
#B947E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A479A

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

Preview Lab → · Contrast checker → · Palette generator →

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