#2A42A4#2A42A4

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

Color values

HEX#2A42A4
RGBrgb(42, 66, 164)
HSLhsl(228, 59%, 40%)
HSVhsv(228, 74%, 64%)
CMYKcmyk(74.4%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.96, 26.14, -55.57)
CIE-LCHlch(31.96, 61.41, 295.19°)
OKLaboklab(42.34% -0.0051 -0.1604)
OKLCHoklch(42.34% 0.16 268.2)
XYZxyz(9.6016, 7.0680, 35.9730)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A4 #A48C2A
analogous
#2A7FA4 #2A42A4 #4F2AA4
triadic
#2A42A4 #A42A42 #42A42A
tetradic
#2A42A4 #A42A7F #A48C2A #2AA44F
square
#2A42A4 #A42A7F #A48C2A #2AA44F
split-complementary
#2A42A4 #A44F2A #7FA42A
monochromatic
#111B43 #1E2E73 #2A42A4 #3E5ACD #6E84DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A42A4#FFFFFF#000000##FFFFFF
##2A42A41.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)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a42a4;
/* rgb */ color: rgb(42, 66, 164);
/* oklch */ color: oklch(42.3% 0.160 268.2);
Tailwind
colors: {
  custom: {
    50: '#7576c0',
    500: '#2a42a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a4;
$custom-light: #7576c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a4",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 228.197,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.16047,
    "h": 268.2
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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