#2A41A6#2A41A6

#2A41A6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.164 H 268.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A41A6
RGBrgb(42, 65, 166)
HSLhsl(229, 60%, 41%)
HSVhsv(229, 75%, 65%)
CMYKcmyk(74.7%, 60.8%, 0%, 34.9%)
CIE-LABlab(31.86, 27.56, -56.93)
CIE-LCHlch(31.86, 63.25, 295.83°)
OKLaboklab(42.32% -0.0044 -0.1644)
OKLCHoklch(42.32% 0.164 268.5)
XYZxyz(9.7257, 7.0250, 36.9124)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A41A6 #A68F2A
analogous
#2A7FA6 #2A41A6 #512AA6
triadic
#2A41A6 #A62A41 #41A62A
tetradic
#2A41A6 #A62A7F #A68F2A #2AA651
square
#2A41A6 #A62A7F #A68F2A #2AA651
split-complementary
#2A41A6 #A6512A #7FA62A
monochromatic
#111B44 #1E2E75 #2A41A6 #3F59CE #7084DB

Accessibility & contrast

On white

8.73
#2A41A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A41A6
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A41A6#FFFFFF#000000##FFFFFF
##2A41A61.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a41a6;
/* rgb */ color: rgb(42, 65, 166);
/* oklch */ color: oklch(42.3% 0.164 268.5);
Tailwind
colors: {
  custom: {
    50: '#7675c1',
    500: '#2a41a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a41a6;
$custom-light: #7675c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a41a6",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 228.871,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42321,
    "c": 0.16446,
    "h": 268.5
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A41A6

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

Preview Lab → · Contrast checker → · Palette generator →

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