#2D41A6#2D41A6

#2D41A6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.164 H 269.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2D41A6
RGBrgb(45, 65, 166)
HSLhsl(230, 57%, 41%)
HSVhsv(230, 73%, 65%)
CMYKcmyk(72.9%, 60.8%, 0%, 34.9%)
CIE-LABlab(32.01, 27.93, -56.68)
CIE-LCHlch(32.01, 63.19, 296.23°)
OKLaboklab(42.47% -0.0015 -0.1636)
OKLCHoklch(42.47% 0.164 269.5)
XYZxyz(9.8531, 7.0906, 36.9184)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D41A6 #A6922D
analogous
#2D7EA6 #2D41A6 #562DA6
triadic
#2D41A6 #A62D41 #41A62D
tetradic
#2D41A6 #A62D7E #A6922D #2DA656
square
#2D41A6 #A62D7E #A6922D #2DA656
split-complementary
#2D41A6 #A6562D #7EA62D
monochromatic
#131B46 #202E76 #2D41A6 #445ACC #7485D9

Accessibility & contrast

On white

8.68
#2D41A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D41A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D41A6
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D41A6#FFFFFF#000000##FFFFFF
##2D41A61.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d41a6;
/* rgb */ color: rgb(45, 65, 166);
/* oklch */ color: oklch(42.5% 0.164 269.5);
Tailwind
colors: {
  custom: {
    50: '#7775c1',
    500: '#2d41a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d41a6;
$custom-light: #7775c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d41a6",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 230.083,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42472,
    "c": 0.16362,
    "h": 269.5
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#2D41A6
secondary
#C1B36E
accent
#C747E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D41A6

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

Preview Lab → · Contrast checker → · Palette generator →

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