#2A41A1#2A41A1

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

Color values

HEX#2A41A1
RGBrgb(42, 65, 161)
HSLhsl(228, 59%, 40%)
HSVhsv(228, 74%, 63%)
CMYKcmyk(73.9%, 59.6%, 0%, 36.9%)
CIE-LABlab(31.45, 25.67, -54.59)
CIE-LCHlch(31.45, 60.33, 295.18°)
OKLaboklab(41.89% -0.0044 -0.1575)
OKLCHoklch(41.89% 0.158 268.4)
XYZxyz(9.2759, 6.8451, 34.5437)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A41A1 #A18A2A
analogous
#2A7DA1 #2A41A1 #4E2AA1
triadic
#2A41A1 #A12A41 #41A12A
tetradic
#2A41A1 #A12A7D #A18A2A #2AA14E
square
#2A41A1 #A12A7D #A18A2A #2AA14E
split-complementary
#2A41A1 #A14E2A #7DA12A
monochromatic
#111A40 #1D2D70 #2A41A1 #3C58CC #6D82D9

Accessibility & contrast

On white

8.86
#2A41A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A41A1
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A41A1#FFFFFF#000000##FFFFFF
##2A41A11.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a41a1;
/* rgb */ color: rgb(42, 65, 161);
/* oklch */ color: oklch(41.9% 0.158 268.4);
Tailwind
colors: {
  custom: {
    50: '#7575be',
    500: '#2a41a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a41a1;
$custom-light: #7575be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a41a1",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 161
  },
  "hsl": {
    "h": 228.403,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41886,
    "c": 0.15759,
    "h": 268.4
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#2A41A1
secondary
#C0AE67
accent
#C446E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A41A1

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

Preview Lab → · Contrast checker → · Palette generator →

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