#2A42C2#2A42C2

#2A42C2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.1% C 0.200 H 268.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2A42C2
RGBrgb(42, 66, 194)
HSLhsl(231, 64%, 46%)
HSVhsv(231, 78%, 76%)
CMYKcmyk(78.4%, 66%, 0%, 23.9%)
CIE-LABlab(34.56, 37.25, -69.11)
CIE-LCHlch(34.56, 78.51, 298.32°)
OKLaboklab(45.07% -0.0058 -0.2001)
OKLCHoklch(45.07% 0.2 268.3)
XYZxyz(12.6373, 8.2823, 51.9611)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42C2 #C2AA2A
analogous
#2A8EC2 #2A42C2 #5E2AC2
triadic
#2A42C2 #C22A42 #42C22A
tetradic
#2A42C2 #C22A8E #C2AA2A #2AC25E
square
#2A42C2 #C22A8E #C2AA2A #2AC25E
split-complementary
#2A42C2 #C25E2A #8EC22A
monochromatic
#14205D #1F3190 #2A42C2 #5066D9 #8292E4

Accessibility & contrast

On white

7.90
#2A42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42C2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42C2#FFFFFF#000000##FFFFFF
##2A42C21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a42c2;
/* rgb */ color: rgb(42, 66, 194);
/* oklch */ color: oklch(45.1% 0.200 268.3);
Tailwind
colors: {
  custom: {
    50: '#7d76d6',
    500: '#2a42c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a42c2;
$custom-light: #7d76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42c2",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 230.526,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45066,
    "c": 0.20015,
    "h": 268.3
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#2A42C2
secondary
#CDC07B
accent
#CD40E7
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2A42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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