#2A479F#2A479F

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

Color values

HEX#2A479F
RGBrgb(42, 71, 159)
HSLhsl(225, 58%, 39%)
HSVhsv(225, 74%, 62%)
CMYKcmyk(73.6%, 55.3%, 0%, 37.6%)
CIE-LABlab(32.92, 20.88, -51.00)
CIE-LCHlch(32.92, 55.11, 292.27°)
OKLaboklab(42.94% -0.0092 -0.1469)
OKLCHoklch(42.94% 0.147 266.4)
XYZxyz(9.4639, 7.5009, 33.7432)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A479F #9F822A
analogous
#2A829F #2A479F #482A9F
triadic
#2A479F #9F2A47 #479F2A
tetradic
#2A479F #9F2A82 #9F822A #2A9F48
square
#2A479F #9F2A82 #9F822A #2A9F48
split-complementary
#2A479F #9F482A #829F2A
monochromatic
#101C3E #1D316F #2A479F #3B5FCB #6B86D8

Accessibility & contrast

On white

8.40
#2A479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A479F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A479F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A479F#FFFFFF#000000##FFFFFF
##2A479F1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a479f;
/* rgb */ color: rgb(42, 71, 159);
/* oklch */ color: oklch(42.9% 0.147 266.4);
Tailwind
colors: {
  custom: {
    50: '#7479bc',
    500: '#2a479f',
    950: '#000000',
  },
}
SCSS
$custom: #2a479f;
$custom-light: #7479bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a479f",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 225.128,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42938,
    "c": 0.14717,
    "h": 266.4
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#2A479F
secondary
#BFA966
accent
#BB46E1
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2A479F

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

Preview Lab → · Contrast checker → · Palette generator →

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