#2A41A4#2A41A4

#2A41A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.162 H 268.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2A41A4
RGBrgb(42, 65, 164)
HSLhsl(229, 59%, 40%)
HSVhsv(229, 74%, 64%)
CMYKcmyk(74.4%, 60.4%, 0%, 35.7%)
CIE-LABlab(31.70, 26.80, -56.00)
CIE-LCHlch(31.70, 62.08, 295.58°)
OKLaboklab(42.15% -0.0044 -0.1617)
OKLCHoklch(42.15% 0.162 268.4)
XYZxyz(9.5437, 6.9522, 35.9537)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A41A4 #A48D2A
analogous
#2A7EA4 #2A41A4 #502AA4
triadic
#2A41A4 #A42A41 #41A42A
tetradic
#2A41A4 #A42A7E #A48D2A #2AA450
square
#2A41A4 #A42A7E #A48D2A #2AA450
split-complementary
#2A41A4 #A4502A #7EA42A
monochromatic
#111A43 #1E2E73 #2A41A4 #3E59CD #6E83DA

Accessibility & contrast

On white

8.78
#2A41A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A41A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A41A4
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A41A4#FFFFFF#000000##FFFFFF
##2A41A41.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a41a4;
/* rgb */ color: rgb(42, 65, 164);
/* oklch */ color: oklch(42.1% 0.162 268.4);
Tailwind
colors: {
  custom: {
    50: '#7675c0',
    500: '#2a41a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a41a4;
$custom-light: #7675c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a41a4",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 164
  },
  "hsl": {
    "h": 228.689,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42146,
    "c": 0.16172,
    "h": 268.4
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#2A41A4
secondary
#C1B069
accent
#C545E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A41A4

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

Preview Lab → · Contrast checker → · Palette generator →

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