#2A42B6#2A42B6

#2A42B6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.185 H 268.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2A42B6
RGBrgb(42, 66, 182)
HSLhsl(230, 63%, 44%)
HSVhsv(230, 77%, 71%)
CMYKcmyk(76.9%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.49, 32.86, -63.81)
CIE-LCHlch(33.49, 71.78, 297.25°)
OKLaboklab(43.95% -0.0053 -0.1846)
OKLCHoklch(43.95% 0.185 268.4)
XYZxyz(11.3436, 7.7648, 45.1478)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B6 #B69E2A
analogous
#2A88B6 #2A42B6 #582AB6
triadic
#2A42B6 #B62A42 #42B62A
tetradic
#2A42B6 #B62A88 #B69E2A #2AB658
square
#2A42B6 #B62A88 #B69E2A #2AB658
split-complementary
#2A42B6 #B6582A #88B62A
monochromatic
#131E53 #1F3084 #2A42B6 #4860D5 #7A8CE0

Accessibility & contrast

On white

8.22
#2A42B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A42B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42B6
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B6#FFFFFF#000000##FFFFFF
##2A42B61.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a42b6;
/* rgb */ color: rgb(42, 66, 182);
/* oklch */ color: oklch(43.9% 0.185 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a76cd',
    500: '#2a42b6',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b6;
$custom-light: #7a76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b6",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 229.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43947,
    "c": 0.18465,
    "h": 268.4
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#2A42B6
secondary
#C8BA73
accent
#CA42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2A42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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