#2A42B7#2A42B7

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

Color values

HEX#2A42B7
RGBrgb(42, 66, 183)
HSLhsl(230, 63%, 44%)
HSVhsv(230, 77%, 72%)
CMYKcmyk(77%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.58, 33.23, -64.26)
CIE-LCHlch(33.58, 72.34, 297.34°)
OKLaboklab(44.04% -0.0053 -0.1859)
OKLCHoklch(44.04% 0.186 268.4)
XYZxyz(11.4473, 7.8063, 45.6940)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B7 #B79F2A
analogous
#2A89B7 #2A42B7 #592AB7
triadic
#2A42B7 #B72A42 #42B72A
tetradic
#2A42B7 #B72A89 #B79F2A #2AB759
square
#2A42B7 #B72A89 #B79F2A #2AB759
split-complementary
#2A42B7 #B7592A #89B72A
monochromatic
#131E53 #1F3085 #2A42B7 #4961D5 #7B8CE1

Accessibility & contrast

On white

8.20
#2A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42B7
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B7#FFFFFF#000000##FFFFFF
##2A42B71.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a42b7;
/* rgb */ color: rgb(42, 66, 183);
/* oklch */ color: oklch(44.0% 0.186 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a76ce',
    500: '#2a42b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b7;
$custom-light: #7a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b7",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 229.787,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44039,
    "c": 0.18596,
    "h": 268.4
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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