#2D479D#2D479D

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

Color values

HEX#2D479D
RGBrgb(45, 71, 157)
HSLhsl(226, 55%, 40%)
HSVhsv(226, 71%, 62%)
CMYKcmyk(71.3%, 54.8%, 0%, 38.4%)
CIE-LABlab(32.91, 20.54, -49.79)
CIE-LCHlch(32.91, 53.87, 292.42°)
OKLaboklab(42.93% -0.0066 -0.1433)
OKLCHoklch(42.93% 0.143 267.3)
XYZxyz(9.4191, 7.4977, 32.8426)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D479D #9D832D
analogous
#2D7F9D #2D479D #4B2D9D
triadic
#2D479D #9D2D47 #479D2D
tetradic
#2D479D #9D2D7F #9D832D #2D9D4B
square
#2D479D #9D2D7F #9D832D #2D9D4B
split-complementary
#2D479D #9D4B2D #7F9D2D
monochromatic
#121C3E #1F316D #2D479D #3F5FC8 #6F87D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D479D#FFFFFF#000000##FFFFFF
##2D479D1.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)
#0453A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d479d;
/* rgb */ color: rgb(45, 71, 157);
/* oklch */ color: oklch(42.9% 0.143 267.3);
Tailwind
colors: {
  custom: {
    50: '#7579bb',
    500: '#2d479d',
    950: '#000000',
  },
}
SCSS
$custom: #2d479d;
$custom-light: #7579bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d479d",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 157
  },
  "hsl": {
    "h": 226.071,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42925,
    "c": 0.14343,
    "h": 267.3
  },
  "luminance": 0.07499
}

Semantic roles & 50–950 ramp

primary
#2D479D
secondary
#BDA969
accent
#BC49DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2D479D

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

Preview Lab → · Contrast checker → · Palette generator →

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