#2A41A7#2A41A7

#2A41A7 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.166 H 268.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2A41A7
RGBrgb(42, 65, 167)
HSLhsl(229, 60%, 41%)
HSVhsv(229, 75%, 65%)
CMYKcmyk(74.9%, 61.1%, 0%, 34.5%)
CIE-LABlab(31.95, 27.93, -57.40)
CIE-LCHlch(31.95, 63.83, 295.95°)
OKLaboklab(42.41% -0.0044 -0.1658)
OKLCHoklch(42.41% 0.166 268.5)
XYZxyz(9.8178, 7.0618, 37.3974)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A41A7 #A7902A
analogous
#2A7FA7 #2A41A7 #512AA7
triadic
#2A41A7 #A72A41 #41A72A
tetradic
#2A41A7 #A72A7F #A7902A #2AA751
square
#2A41A7 #A72A7F #A7902A #2AA751
split-complementary
#2A41A7 #A7512A #7FA72A
monochromatic
#111B45 #1E2E76 #2A41A7 #3F5ACF #7084DB

Accessibility & contrast

On white

8.70
#2A41A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A41A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A41A7
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A41A7#FFFFFF#000000##FFFFFF
##2A41A71.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a41a7;
/* rgb */ color: rgb(42, 65, 167);
/* oklch */ color: oklch(42.4% 0.166 268.5);
Tailwind
colors: {
  custom: {
    50: '#7675c2',
    500: '#2a41a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a41a7;
$custom-light: #7675c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a41a7",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 167
  },
  "hsl": {
    "h": 228.96,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42409,
    "c": 0.16582,
    "h": 268.5
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

primary
#2A41A7
secondary
#C2B26B
accent
#C645E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A41A7

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

Preview Lab → · Contrast checker → · Palette generator →

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