#2A41A2#2A41A2

#2A41A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.159 H 268.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A41A2
RGBrgb(42, 65, 162)
HSLhsl(229, 59%, 40%)
HSVhsv(229, 74%, 64%)
CMYKcmyk(74.1%, 59.9%, 0%, 36.5%)
CIE-LABlab(31.53, 26.05, -55.06)
CIE-LCHlch(31.53, 60.91, 295.32°)
OKLaboklab(41.97% -0.0044 -0.1589)
OKLCHoklch(41.97% 0.159 268.4)
XYZxyz(9.3645, 6.8805, 35.0100)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A41A2 #A28B2A
analogous
#2A7DA2 #2A41A2 #4F2AA2
triadic
#2A41A2 #A22A41 #41A22A
tetradic
#2A41A2 #A22A7D #A28B2A #2AA24F
square
#2A41A2 #A22A7D #A28B2A #2AA24F
split-complementary
#2A41A2 #A24F2A #7DA22A
monochromatic
#111A41 #1D2D71 #2A41A2 #3D58CD #6D82D9

Accessibility & contrast

On white

8.84
#2A41A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A41A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A41A2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A41A2#FFFFFF#000000##FFFFFF
##2A41A21.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a41a2;
/* rgb */ color: rgb(42, 65, 162);
/* oklch */ color: oklch(42.0% 0.159 268.4);
Tailwind
colors: {
  custom: {
    50: '#7575be',
    500: '#2a41a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a41a2;
$custom-light: #7575be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a41a2",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 228.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41972,
    "c": 0.15897,
    "h": 268.4
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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