#2A42A6#2A42A6

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

Color values

HEX#2A42A6
RGBrgb(42, 66, 166)
HSLhsl(228, 60%, 41%)
HSVhsv(228, 75%, 65%)
CMYKcmyk(74.7%, 60.2%, 0%, 34.9%)
CIE-LABlab(32.13, 26.89, -56.50)
CIE-LCHlch(32.13, 62.58, 295.45°)
OKLaboklab(42.52% -0.0051 -0.1631)
OKLCHoklch(42.52% 0.163 268.2)
XYZxyz(9.7836, 7.1408, 36.9317)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A6 #A68E2A
analogous
#2A80A6 #2A42A6 #502AA6
triadic
#2A42A6 #A62A42 #42A62A
tetradic
#2A42A6 #A62A80 #A68E2A #2AA650
square
#2A42A6 #A62A80 #A68E2A #2AA650
split-complementary
#2A42A6 #A6502A #80A62A
monochromatic
#111B44 #1E2F75 #2A42A6 #3F5BCE #7084DB

Accessibility & contrast

On white

8.65
#2A42A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2A42A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42A6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42A6#FFFFFF#000000##FFFFFF
##2A42A61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a42a6;
/* rgb */ color: rgb(42, 66, 166);
/* oklch */ color: oklch(42.5% 0.163 268.2);
Tailwind
colors: {
  custom: {
    50: '#7676c1',
    500: '#2a42a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a6;
$custom-light: #7676c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a6",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 228.387,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42516,
    "c": 0.16321,
    "h": 268.2
  },
  "luminance": 0.07142
}

Semantic roles & 50–950 ramp

primary
#2A42A6
secondary
#C2B16A
accent
#C445E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A42A6

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

Preview Lab → · Contrast checker → · Palette generator →

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