#2A42BF#2A42BF

#2A42BF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.196 H 268.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2A42BF
RGBrgb(42, 66, 191)
HSLhsl(230, 64%, 46%)
HSVhsv(230, 78%, 75%)
CMYKcmyk(78%, 65.4%, 0%, 25.1%)
CIE-LABlab(34.29, 36.16, -67.80)
CIE-LCHlch(34.29, 76.84, 298.07°)
OKLaboklab(44.78% -0.0057 -0.1962)
OKLCHoklch(44.78% 0.196 268.3)
XYZxyz(12.3038, 8.1489, 50.2045)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42BF #BFA72A
analogous
#2A8CBF #2A42BF #5D2ABF
triadic
#2A42BF #BF2A42 #42BF2A
tetradic
#2A42BF #BF2A8C #BFA72A #2ABF5D
square
#2A42BF #BF2A8C #BFA72A #2ABF5D
split-complementary
#2A42BF #BF5D2A #8CBF2A
monochromatic
#141F5B #1F318D #2A42BF #4E64D8 #8090E3

Accessibility & contrast

On white

7.98
#2A42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42BF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42BF#FFFFFF#000000##FFFFFF
##2A42BF1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a42bf;
/* rgb */ color: rgb(42, 66, 191);
/* oklch */ color: oklch(44.8% 0.196 268.3);
Tailwind
colors: {
  custom: {
    50: '#7c76d3',
    500: '#2a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #2a42bf;
$custom-light: #7c76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42bf",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 230.336,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.19632,
    "h": 268.3
  },
  "luminance": 0.0815
}

Semantic roles & 50–950 ramp

primary
#2A42BF
secondary
#CCBE79
accent
#CC41E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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