#2A42AB#2A42AB

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

Color values

HEX#2A42AB
RGBrgb(42, 66, 171)
HSLhsl(229, 61%, 42%)
HSVhsv(229, 75%, 67%)
CMYKcmyk(75.4%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.54, 28.77, -58.82)
CIE-LCHlch(32.54, 65.48, 296.06°)
OKLaboklab(42.96% -0.0051 -0.1699)
OKLCHoklch(42.96% 0.17 268.3)
XYZxyz(10.2512, 7.3278, 39.3943)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42AB #AB932A
analogous
#2A83AB #2A42AB #532AAB
triadic
#2A42AB #AB2A42 #42AB2A
tetradic
#2A42AB #AB2A83 #AB932A #2AAB53
square
#2A42AB #AB2A83 #AB932A #2AAB53
split-complementary
#2A42AB #AB532A #83AB2A
monochromatic
#121C49 #1E2F7A #2A42AB #425CD1 #7387DD

Accessibility & contrast

On white

8.52
#2A42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A42AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42AB
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42AB#FFFFFF#000000##FFFFFF
##2A42AB1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a42ab;
/* rgb */ color: rgb(42, 66, 171);
/* oklch */ color: oklch(43.0% 0.170 268.3);
Tailwind
colors: {
  custom: {
    50: '#7776c5',
    500: '#2a42ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a42ab;
$custom-light: #7776c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42ab",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 228.837,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42955,
    "c": 0.17001,
    "h": 268.3
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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