#2A42A5#2A42A5

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

Color values

HEX#2A42A5
RGBrgb(42, 66, 165)
HSLhsl(228, 59%, 41%)
HSVhsv(228, 75%, 65%)
CMYKcmyk(74.5%, 60%, 0%, 35.3%)
CIE-LABlab(32.04, 26.51, -56.04)
CIE-LCHlch(32.04, 61.99, 295.32°)
OKLaboklab(42.43% -0.0051 -0.1618)
OKLCHoklch(42.43% 0.162 268.2)
XYZxyz(9.6922, 7.1043, 36.4505)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A5 #A58D2A
analogous
#2A7FA5 #2A42A5 #502AA5
triadic
#2A42A5 #A52A42 #42A52A
tetradic
#2A42A5 #A52A7F #A58D2A #2AA550
square
#2A42A5 #A52A7F #A58D2A #2AA550
split-complementary
#2A42A5 #A5502A #7FA52A
monochromatic
#111B43 #1E2E74 #2A42A5 #3E5ACE #6F84DA

Accessibility & contrast

On white

8.67
#2A42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2A42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42A5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42A5#FFFFFF#000000##FFFFFF
##2A42A51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a42a5;
/* rgb */ color: rgb(42, 66, 165);
/* oklch */ color: oklch(42.4% 0.162 268.2);
Tailwind
colors: {
  custom: {
    50: '#7676c1',
    500: '#2a42a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a5;
$custom-light: #7676c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a5",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 228.293,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.16184,
    "h": 268.2
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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