#2A478E#2A478E

#2A478E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.6% C 0.123 H 264.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2A478E
RGBrgb(42, 71, 142)
HSLhsl(223, 54%, 36%)
HSVhsv(223, 70%, 56%)
CMYKcmyk(70.4%, 50%, 0%, 44.3%)
CIE-LABlab(31.69, 14.35, -42.64)
CIE-LCHlch(31.69, 44.99, 288.60°)
OKLaboklab(41.62% -0.011 -0.1223)
OKLCHoklch(41.62% 0.123 264.9)
XYZxyz(8.0889, 6.9509, 26.5013)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A478E #8E712A
analogous
#2A798E #2A478E #3F2A8E
triadic
#2A478E #8E2A47 #478E2A
tetradic
#2A478E #8E2A79 #8E712A #2A8E3F
square
#2A478E #8E2A79 #8E712A #2A8E3F
split-complementary
#2A478E #8E3F2A #798E2A
monochromatic
#0E1830 #1C2F5F #2A478E #385FBD #6282D1

Accessibility & contrast

On white

8.79
#2A478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A478E
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A478E#FFFFFF#000000##FFFFFF
##2A478E1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F91
Deuteranopia (green-blind)
#04468D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a478e;
/* rgb */ color: rgb(42, 71, 142);
/* oklch */ color: oklch(41.6% 0.123 264.9);
Tailwind
colors: {
  custom: {
    50: '#7079af',
    500: '#2a478e',
    950: '#000000',
  },
}
SCSS
$custom: #2a478e;
$custom-light: #7079af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a478e",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 222.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41618,
    "c": 0.12278,
    "h": 264.9
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#2A478E
secondary
#B69D5D
accent
#B34ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A478E

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

Preview Lab → · Contrast checker → · Palette generator →

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