#2A42B5#2A42B5

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

Color values

HEX#2A42B5
RGBrgb(42, 66, 181)
HSLhsl(230, 62%, 44%)
HSVhsv(230, 77%, 71%)
CMYKcmyk(76.8%, 63.5%, 0%, 29%)
CIE-LABlab(33.40, 32.49, -63.37)
CIE-LCHlch(33.40, 71.21, 297.15°)
OKLaboklab(43.86% -0.0052 -0.1832)
OKLCHoklch(43.86% 0.183 268.4)
XYZxyz(11.2407, 7.7236, 44.6055)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B5 #B59D2A
analogous
#2A87B5 #2A42B5 #572AB5
triadic
#2A42B5 #B52A42 #42B52A
tetradic
#2A42B5 #B52A87 #B59D2A #2AB557
square
#2A42B5 #B52A87 #B59D2A #2AB557
split-complementary
#2A42B5 #B5572A #87B52A
monochromatic
#131E52 #1E3083 #2A42B5 #4860D4 #798BE0

Accessibility & contrast

On white

8.25
#2A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A42B5
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B5#FFFFFF#000000##FFFFFF
##2A42B51.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a42b5;
/* rgb */ color: rgb(42, 66, 181);
/* oklch */ color: oklch(43.9% 0.183 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a76cc',
    500: '#2a42b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b5;
$custom-light: #7a76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b5",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 229.64,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43855,
    "c": 0.18333,
    "h": 268.4
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#2A42B5
secondary
#C8B973
accent
#C942E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2A42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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