#2A42B8#2A42B8

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

Color values

HEX#2A42B8
RGBrgb(42, 66, 184)
HSLhsl(230, 63%, 44%)
HSVhsv(230, 77%, 72%)
CMYKcmyk(77.2%, 64.1%, 0%, 27.8%)
CIE-LABlab(33.66, 33.60, -64.71)
CIE-LCHlch(33.66, 72.91, 297.44°)
OKLaboklab(44.13% -0.0053 -0.1872)
OKLCHoklch(44.13% 0.187 268.4)
XYZxyz(11.5518, 7.8481, 46.2441)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B8 #B8A02A
analogous
#2A89B8 #2A42B8 #592AB8
triadic
#2A42B8 #B82A42 #42B82A
tetradic
#2A42B8 #B82A89 #B8A02A #2AB859
square
#2A42B8 #B82A89 #B8A02A #2AB859
split-complementary
#2A42B8 #B8592A #89B82A
monochromatic
#131E54 #1F3086 #2A42B8 #4A61D6 #7B8DE1

Accessibility & contrast

On white

8.17
#2A42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42B8
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B8#FFFFFF#000000##FFFFFF
##2A42B81.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a42b8;
/* rgb */ color: rgb(42, 66, 184);
/* oklch */ color: oklch(44.1% 0.187 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a76ce',
    500: '#2a42b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b8;
$custom-light: #7a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b8",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 229.859,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44131,
    "c": 0.18726,
    "h": 268.4
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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