#2A478B#2A478B

#2A478B is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.118 H 264.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2A478B
RGBrgb(42, 71, 139)
HSLhsl(222, 54%, 35%)
HSVhsv(222, 70%, 55%)
CMYKcmyk(69.8%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.49, 13.20, -41.13)
CIE-LCHlch(31.49, 43.19, 287.79°)
OKLaboklab(41.4% -0.0115 -0.1178)
OKLCHoklch(41.4% 0.118 264.4)
XYZxyz(7.8666, 6.8620, 25.3310)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A478B #8B6E2A
analogous
#2A778B #2A478B #3D2A8B
triadic
#2A478B #8B2A47 #478B2A
tetradic
#2A478B #8B2A77 #8B6E2A #2A8B3D
square
#2A478B #8B2A77 #8B6E2A #2A8B3D
split-complementary
#2A478B #8B3D2A #778B2A
monochromatic
#0E172D #1C2F5C #2A478B #385FBA #6081CF

Accessibility & contrast

On white

8.85
#2A478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A478B
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A478B#FFFFFF#000000##FFFFFF
##2A478B1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#0D468A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a478b;
/* rgb */ color: rgb(42, 71, 139);
/* oklch */ color: oklch(41.4% 0.118 264.4);
Tailwind
colors: {
  custom: {
    50: '#6f79ad',
    500: '#2a478b',
    950: '#000000',
  },
}
SCSS
$custom: #2a478b;
$custom-light: #6f79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a478b",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 222.062,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41396,
    "c": 0.11839,
    "h": 264.4
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#2A478B
secondary
#B59A5C
accent
#B14BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A478B

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

Preview Lab → · Contrast checker → · Palette generator →

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