#2D41AB#2D41AB

#2D41AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.170 H 269.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2D41AB
RGBrgb(45, 65, 171)
HSLhsl(230, 58%, 42%)
HSVhsv(230, 74%, 67%)
CMYKcmyk(73.7%, 62%, 0%, 32.9%)
CIE-LABlab(32.43, 29.78, -59.00)
CIE-LCHlch(32.43, 66.09, 296.79°)
OKLaboklab(42.91% -0.0015 -0.1704)
OKLCHoklch(42.91% 0.17 269.5)
XYZxyz(10.3206, 7.2777, 39.3810)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D41AB #AB972D
analogous
#2D80AB #2D41AB #582DAB
triadic
#2D41AB #AB2D41 #41AB2D
tetradic
#2D41AB #AB2D80 #AB972D #2DAB58
square
#2D41AB #AB2D80 #AB972D #2DAB58
split-complementary
#2D41AB #AB582D #80AB2D
monochromatic
#141C4A #202F7B #2D41AB #475CCE #7787DB

Accessibility & contrast

On white

8.55
#2D41AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2D41AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D41AB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D41AB#FFFFFF#000000##FFFFFF
##2D41AB1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d41ab;
/* rgb */ color: rgb(45, 65, 171);
/* oklch */ color: oklch(42.9% 0.170 269.5);
Tailwind
colors: {
  custom: {
    50: '#7875c5',
    500: '#2d41ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d41ab;
$custom-light: #7875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d41ab",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 230.476,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42912,
    "c": 0.1704,
    "h": 269.5
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#2D41AB
secondary
#C3B671
accent
#C946E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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