#2D41A0#2D41A0

#2D41A0 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.155 H 269.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2D41A0
RGBrgb(45, 65, 160)
HSLhsl(230, 56%, 40%)
HSVhsv(230, 72%, 63%)
CMYKcmyk(71.9%, 59.4%, 0%, 37.3%)
CIE-LABlab(31.52, 25.69, -53.87)
CIE-LCHlch(31.52, 59.68, 295.50°)
OKLaboklab(41.95% -0.0015 -0.1553)
OKLCHoklch(41.95% 0.155 269.4)
XYZxyz(9.3155, 6.8756, 34.0871)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D41A0 #A08C2D
analogous
#2D7BA0 #2D41A0 #522DA0
triadic
#2D41A0 #A02D41 #41A02D
tetradic
#2D41A0 #A02D7B #A08C2D #2DA052
square
#2D41A0 #A02D7B #A08C2D #2DA052
split-complementary
#2D41A0 #A0522D #7BA02D
monochromatic
#121A40 #202E70 #2D41A0 #4159C9 #7082D7

Accessibility & contrast

On white

8.84
#2D41A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2D41A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D41A0
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D41A0#FFFFFF#000000##FFFFFF
##2D41A01.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d41a0;
/* rgb */ color: rgb(45, 65, 160);
/* oklch */ color: oklch(42.0% 0.155 269.4);
Tailwind
colors: {
  custom: {
    50: '#7675bd',
    500: '#2d41a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d41a0;
$custom-light: #7675bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d41a0",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 160
  },
  "hsl": {
    "h": 229.565,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41954,
    "c": 0.15535,
    "h": 269.4
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#2D41A0
secondary
#BEB06B
accent
#C548DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D41A0

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

Preview Lab → · Contrast checker → · Palette generator →

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