#2A478C#2A478C

#2A478C is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.120 H 264.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2A478C
RGBrgb(42, 71, 140)
HSLhsl(222, 54%, 36%)
HSVhsv(222, 70%, 55%)
CMYKcmyk(70%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.56, 13.58, -41.63)
CIE-LCHlch(31.56, 43.79, 288.07°)
OKLaboklab(41.47% -0.0113 -0.1193)
OKLCHoklch(41.47% 0.12 264.6)
XYZxyz(7.9400, 6.8914, 25.7176)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A478C #8C6F2A
analogous
#2A788C #2A478C #3E2A8C
triadic
#2A478C #8C2A47 #478C2A
tetradic
#2A478C #8C2A78 #8C6F2A #2A8C3E
square
#2A478C #8C2A78 #8C6F2A #2A8C3E
split-complementary
#2A478C #8C3E2A #788C2A
monochromatic
#0E172E #1C2F5D #2A478C #385FBB #6182D0

Accessibility & contrast

On white

8.83
#2A478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A478C
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A478C#FFFFFF#000000##FFFFFF
##2A478C1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#0A468B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a478c;
/* rgb */ color: rgb(42, 71, 140);
/* oklch */ color: oklch(41.5% 0.120 264.6);
Tailwind
colors: {
  custom: {
    50: '#7079ae',
    500: '#2a478c',
    950: '#000000',
  },
}
SCSS
$custom: #2a478c;
$custom-light: #7079ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a478c",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 222.245,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4147,
    "c": 0.11985,
    "h": 264.6
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#2A478C
secondary
#B59B5C
accent
#B24BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A478C

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

Preview Lab → · Contrast checker → · Palette generator →

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