#2D479E#2D479E

#2D479E is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.0% C 0.145 H 267.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2D479E
RGBrgb(45, 71, 158)
HSLhsl(226, 56%, 40%)
HSVhsv(226, 72%, 62%)
CMYKcmyk(71.5%, 55.1%, 0%, 38%)
CIE-LABlab(32.99, 20.92, -50.28)
CIE-LCHlch(32.99, 54.46, 292.59°)
OKLaboklab(43.01% -0.0066 -0.1447)
OKLCHoklch(43.01% 0.145 267.4)
XYZxyz(9.5048, 7.5320, 33.2940)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D479E #9E842D
analogous
#2D7F9E #2D479E #4C2D9E
triadic
#2D479E #9E2D47 #479E2D
tetradic
#2D479E #9E2D7F #9E842D #2D9E4C
square
#2D479E #9E2D7F #9E842D #2D9E4C
split-complementary
#2D479E #9E4C2D #7F9E2D
monochromatic
#121C3F #1F326E #2D479E #405FC9 #6F87D6

Accessibility & contrast

On white

8.38
#2D479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2D479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D479E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D479E#FFFFFF#000000##FFFFFF
##2D479E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0153A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d479e;
/* rgb */ color: rgb(45, 71, 158);
/* oklch */ color: oklch(43.0% 0.145 267.4);
Tailwind
colors: {
  custom: {
    50: '#7579bb',
    500: '#2d479e',
    950: '#000000',
  },
}
SCSS
$custom: #2d479e;
$custom-light: #7579bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d479e",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 226.195,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43005,
    "c": 0.14485,
    "h": 267.4
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D479E

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

Preview Lab → · Contrast checker → · Palette generator →

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