#2A42A8#2A42A8

#2A42A8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.166 H 268.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2A42A8
RGBrgb(42, 66, 168)
HSLhsl(229, 60%, 41%)
HSVhsv(229, 75%, 66%)
CMYKcmyk(75%, 60.7%, 0%, 34.1%)
CIE-LABlab(32.29, 27.64, -57.43)
CIE-LCHlch(32.29, 63.74, 295.70°)
OKLaboklab(42.69% -0.0051 -0.1659)
OKLCHoklch(42.69% 0.166 268.2)
XYZxyz(9.9685, 7.2148, 37.9054)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A8 #A8902A
analogous
#2A81A8 #2A42A8 #512AA8
triadic
#2A42A8 #A82A42 #42A82A
tetradic
#2A42A8 #A82A81 #A8902A #2AA851
square
#2A42A8 #A82A81 #A8902A #2AA851
split-complementary
#2A42A8 #A8512A #81A82A
monochromatic
#121C46 #1E2F77 #2A42A8 #405BCF #7185DB

Accessibility & contrast

On white

8.60
#2A42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2A42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42A8
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42A8#FFFFFF#000000##FFFFFF
##2A42A81.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a42a8;
/* rgb */ color: rgb(42, 66, 168);
/* oklch */ color: oklch(42.7% 0.166 268.2);
Tailwind
colors: {
  custom: {
    50: '#7676c3',
    500: '#2a42a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a8;
$custom-light: #7676c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a8",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 228.571,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4269,
    "c": 0.16594,
    "h": 268.2
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#2A42A8
secondary
#C3B26B
accent
#C545E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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