#2A42AE#2A42AE

#2A42AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.174 H 268.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2A42AE
RGBrgb(42, 66, 174)
HSLhsl(229, 61%, 42%)
HSVhsv(229, 76%, 68%)
CMYKcmyk(75.9%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.80, 29.89, -60.20)
CIE-LCHlch(32.80, 67.21, 296.41°)
OKLaboklab(43.22% -0.0051 -0.174)
OKLCHoklch(43.22% 0.174 268.3)
XYZxyz(10.5404, 7.4435, 40.9174)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42AE #AE962A
analogous
#2A84AE #2A42AE #542AAE
triadic
#2A42AE #AE2A42 #42AE2A
tetradic
#2A42AE #AE2A84 #AE962A #2AAE54
square
#2A42AE #AE2A84 #AE962A #2AAE54
split-complementary
#2A42AE #AE542A #84AE2A
monochromatic
#121D4B #1E2F7D #2A42AE #435DD2 #7588DE

Accessibility & contrast

On white

8.44
#2A42AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2A42AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42AE
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42AE#FFFFFF#000000##FFFFFF
##2A42AE1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a42ae;
/* rgb */ color: rgb(42, 66, 174);
/* oklch */ color: oklch(43.2% 0.174 268.3);
Tailwind
colors: {
  custom: {
    50: '#7876c7',
    500: '#2a42ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a42ae;
$custom-light: #7876c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42ae",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 229.091,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43222,
    "c": 0.17403,
    "h": 268.3
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#2A42AE
secondary
#C5B56F
accent
#C744E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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