#2D419F#2D419F

#2D419F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.154 H 269.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2D419F
RGBrgb(45, 65, 159)
HSLhsl(229, 56%, 40%)
HSVhsv(229, 72%, 62%)
CMYKcmyk(71.7%, 59.1%, 0%, 37.6%)
CIE-LABlab(31.44, 25.32, -53.39)
CIE-LCHlch(31.44, 59.09, 295.37°)
OKLaboklab(41.87% -0.0015 -0.1539)
OKLCHoklch(41.87% 0.154 269.4)
XYZxyz(9.2283, 6.8408, 33.6282)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D419F #9F8B2D
analogous
#2D7A9F #2D419F #522D9F
triadic
#2D419F #9F2D41 #419F2D
tetradic
#2D419F #9F2D7A #9F8B2D #2D9F52
square
#2D419F #9F2D7A #9F8B2D #2D9F52
split-complementary
#2D419F #9F522D #7A9F2D
monochromatic
#121A40 #202D6F #2D419F #4058C9 #7082D6

Accessibility & contrast

On white

8.87
#2D419F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D419F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D419F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D419F#FFFFFF#000000##FFFFFF
##2D419F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d419f;
/* rgb */ color: rgb(45, 65, 159);
/* oklch */ color: oklch(41.9% 0.154 269.4);
Tailwind
colors: {
  custom: {
    50: '#7675bc',
    500: '#2d419f',
    950: '#000000',
  },
}
SCSS
$custom: #2d419f;
$custom-light: #7675bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d419f",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 159
  },
  "hsl": {
    "h": 229.474,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.15396,
    "h": 269.4
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#2D419F
secondary
#BEAF6A
accent
#C549DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D419F

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

Preview Lab → · Contrast checker → · Palette generator →

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