#2A42BC#2A42BC

#2A42BC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.192 H 268.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2A42BC
RGBrgb(42, 66, 188)
HSLhsl(230, 63%, 45%)
HSVhsv(230, 78%, 74%)
CMYKcmyk(77.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.02, 35.07, -66.48)
CIE-LCHlch(34.02, 75.16, 297.81°)
OKLaboklab(44.5% -0.0055 -0.1924)
OKLCHoklch(44.5% 0.192 268.4)
XYZxyz(11.9770, 8.0182, 48.4836)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42BC #BCA42A
analogous
#2A8BBC #2A42BC #5B2ABC
triadic
#2A42BC #BC2A42 #42BC2A
tetradic
#2A42BC #BC2A8B #BCA42A #2ABC5B
square
#2A42BC #BC2A8B #BCA42A #2ABC5B
split-complementary
#2A42BC #BC5B2A #8BBC2A
monochromatic
#141F58 #1F308A #2A42BC #4C63D7 #7E8FE2

Accessibility & contrast

On white

8.06
#2A42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42BC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42BC#FFFFFF#000000##FFFFFF
##2A42BC1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a42bc;
/* rgb */ color: rgb(42, 66, 188);
/* oklch */ color: oklch(44.5% 0.192 268.4);
Tailwind
colors: {
  custom: {
    50: '#7b76d1',
    500: '#2a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a42bc;
$custom-light: #7b76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42bc",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 230.137,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44502,
    "c": 0.19246,
    "h": 268.4
  },
  "luminance": 0.0802
}

Semantic roles & 50–950 ramp

primary
#2A42BC
secondary
#CBBD77
accent
#CB41E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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