#2D478E#2D478E

#2D478E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.122 H 266.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2D478E
RGBrgb(45, 71, 142)
HSLhsl(224, 52%, 37%)
HSVhsv(224, 68%, 56%)
CMYKcmyk(68.3%, 50%, 0%, 44.3%)
CIE-LABlab(31.84, 14.85, -42.39)
CIE-LCHlch(31.84, 44.92, 289.31°)
OKLaboklab(41.77% -0.0082 -0.1215)
OKLCHoklch(41.77% 0.122 266.1)
XYZxyz(8.2162, 7.0166, 26.5073)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D478E #8E742D
analogous
#2D788E #2D478E #442D8E
triadic
#2D478E #8E2D47 #478E2D
tetradic
#2D478E #8E2D78 #8E742D #2D8E44
square
#2D478E #8E2D78 #8E742D #2D8E44
split-complementary
#2D478E #8E442D #788E2D
monochromatic
#101931 #1E3060 #2D478E #3C5EBC #6783CF

Accessibility & contrast

On white

8.74
#2D478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2D478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D478E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D478E#FFFFFF#000000##FFFFFF
##2D478E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#07478D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d478e;
/* rgb */ color: rgb(45, 71, 142);
/* oklch */ color: oklch(41.8% 0.122 266.1);
Tailwind
colors: {
  custom: {
    50: '#7179af',
    500: '#2d478e',
    950: '#000000',
  },
}
SCSS
$custom: #2d478e;
$custom-light: #7179af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d478e",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 223.918,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41773,
    "c": 0.12177,
    "h": 266.1
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#2D478E
secondary
#B59F61
accent
#B54CDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D478E

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

Preview Lab → · Contrast checker → · Palette generator →

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