#2A42A0#2A42A0

#2A42A0 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.155 H 268.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2A42A0
RGBrgb(42, 66, 160)
HSLhsl(228, 58%, 40%)
HSVhsv(228, 74%, 63%)
CMYKcmyk(73.8%, 58.8%, 0%, 37.3%)
CIE-LABlab(31.64, 24.62, -53.69)
CIE-LCHlch(31.64, 59.06, 294.64°)
OKLaboklab(42% -0.0052 -0.1549)
OKLCHoklch(42% 0.155 268.1)
XYZxyz(9.2460, 6.9258, 34.1004)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A0 #A0882A
analogous
#2A7DA0 #2A42A0 #4D2AA0
triadic
#2A42A0 #A02A42 #42A02A
tetradic
#2A42A0 #A02A7D #A0882A #2AA04D
square
#2A42A0 #A02A7D #A0882A #2AA04D
split-complementary
#2A42A0 #A04D2A #7DA02A
monochromatic
#111A3F #1D2E70 #2A42A0 #3C59CC #6C82D8

Accessibility & contrast

On white

8.80
#2A42A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A42A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42A0
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42A0#FFFFFF#000000##FFFFFF
##2A42A01.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a42a0;
/* rgb */ color: rgb(42, 66, 160);
/* oklch */ color: oklch(42.0% 0.155 268.1);
Tailwind
colors: {
  custom: {
    50: '#7476bd',
    500: '#2a42a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a0;
$custom-light: #7476bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a0",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 227.797,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41999,
    "c": 0.15495,
    "h": 268.1
  },
  "luminance": 0.06927
}

Semantic roles & 50–950 ramp

primary
#2A42A0
secondary
#BFAD67
accent
#C246E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A42A0

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

Preview Lab → · Contrast checker → · Palette generator →

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