#2D419D#2D419D

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

Color values

HEX#2D419D
RGBrgb(45, 65, 157)
HSLhsl(229, 55%, 40%)
HSVhsv(229, 71%, 62%)
CMYKcmyk(71.3%, 58.6%, 0%, 38.4%)
CIE-LABlab(31.28, 24.57, -52.44)
CIE-LCHlch(31.28, 57.91, 295.10°)
OKLaboklab(41.7% -0.0016 -0.1511)
OKLCHoklch(41.7% 0.151 269.4)
XYZxyz(9.0562, 6.7719, 32.7216)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D419D #9D892D
analogous
#2D799D #2D419D #512D9D
triadic
#2D419D #9D2D41 #419D2D
tetradic
#2D419D #9D2D79 #9D892D #2D9D51
square
#2D419D #9D2D79 #9D892D #2D9D51
split-complementary
#2D419D #9D512D #799D2D
monochromatic
#121A3E #1F2D6D #2D419D #3F58C8 #6F81D6

Accessibility & contrast

On white

8.92
#2D419D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2D419D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D419D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D419D#FFFFFF#000000##FFFFFF
##2D419D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d419d;
/* rgb */ color: rgb(45, 65, 157);
/* oklch */ color: oklch(41.7% 0.151 269.4);
Tailwind
colors: {
  custom: {
    50: '#7575bb',
    500: '#2d419d',
    950: '#000000',
  },
}
SCSS
$custom: #2d419d;
$custom-light: #7575bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d419d",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 229.286,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.417,
    "c": 0.15116,
    "h": 269.4
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#2D419D
secondary
#BDAE69
accent
#C449DF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2D419D

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

Preview Lab → · Contrast checker → · Palette generator →

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