#2A479C#2A479C

#2A479C is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.143 H 266.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2A479C
RGBrgb(42, 71, 156)
HSLhsl(225, 58%, 39%)
HSVhsv(225, 73%, 61%)
CMYKcmyk(73.1%, 54.5%, 0%, 38.8%)
CIE-LABlab(32.70, 19.73, -49.55)
CIE-LCHlch(32.70, 53.33, 291.71°)
OKLaboklab(42.7% -0.0095 -0.1426)
OKLCHoklch(42.7% 0.143 266.2)
XYZxyz(9.2067, 7.3981, 32.3888)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A479C #9C7F2A
analogous
#2A809C #2A479C #462A9C
triadic
#2A479C #9C2A47 #479C2A
tetradic
#2A479C #9C2A80 #9C7F2A #2A9C46
square
#2A479C #9C2A80 #9C7F2A #2A9C46
split-complementary
#2A479C #9C462A #809C2A
monochromatic
#101B3C #1D316C #2A479C #395ECA #6A85D7

Accessibility & contrast

On white

8.47
#2A479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2A479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A479C
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A479C#FFFFFF#000000##FFFFFF
##2A479C1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06529F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a479c;
/* rgb */ color: rgb(42, 71, 156);
/* oklch */ color: oklch(42.7% 0.143 266.2);
Tailwind
colors: {
  custom: {
    50: '#7379ba',
    500: '#2a479c',
    950: '#000000',
  },
}
SCSS
$custom: #2a479c;
$custom-light: #7379ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a479c",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 224.737,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42698,
    "c": 0.14293,
    "h": 266.2
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#2A479C
secondary
#BDA765
accent
#BA47E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2A479C

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

Preview Lab → · Contrast checker → · Palette generator →

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