#2A42AA#2A42AA

#2A42AA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.169 H 268.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2A42AA
RGBrgb(42, 66, 170)
HSLhsl(229, 60%, 42%)
HSVhsv(229, 75%, 67%)
CMYKcmyk(75.3%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.46, 28.39, -58.36)
CIE-LCHlch(32.46, 64.90, 295.95°)
OKLaboklab(42.87% -0.0051 -0.1686)
OKLCHoklch(42.87% 0.169 268.3)
XYZxyz(10.1562, 7.2899, 38.8942)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42AA #AA922A
analogous
#2A82AA #2A42AA #522AAA
triadic
#2A42AA #AA2A42 #42AA2A
tetradic
#2A42AA #AA2A82 #AA922A #2AAA52
square
#2A42AA #AA2A82 #AA922A #2AAA52
split-complementary
#2A42AA #AA522A #82AA2A
monochromatic
#121C48 #1E2F79 #2A42AA #415CD0 #7286DC

Accessibility & contrast

On white

8.54
#2A42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2A42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42AA
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42AA#FFFFFF#000000##FFFFFF
##2A42AA1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a42aa;
/* rgb */ color: rgb(42, 66, 170);
/* oklch */ color: oklch(42.9% 0.169 268.3);
Tailwind
colors: {
  custom: {
    50: '#7776c4',
    500: '#2a42aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a42aa;
$custom-light: #7776c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42aa",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 228.75,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42866,
    "c": 0.16866,
    "h": 268.3
  },
  "luminance": 0.07291
}

Semantic roles & 50–950 ramp

primary
#2A42AA
secondary
#C3B36C
accent
#C644E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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